Skip to contentSkip to conversation

pixel sizes

DISCUSSION Veda N 2 participants 4 messages Jun 7, 2008 – Jun 8, 2008 Media (V4L/DVB)

lore
Share & tools
lore

Veda N

author
#0 lore raw

Hi,
A few newbie questions.

Are the sizes of each pixels same for all the sensor? Does each sensor have its own size description for each pixel.

I guess each LCDs/Display Units have their own pixel sizes. In which case how the captured pixels are displayed on the LCD?

Should the definitions of pixels (sizes & format) of sensor and
display unit
match?

Do video applications have their own definition of how much size each pixel should have?

Does the size of the pixel size change if it is RGB or YUV422?

Regards,
vedan

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#1 lore raw
Quoted 1 line · Veda N

Are the sizes of each pixels same for all the sensor?

No

Quoted 2 lines

Does each sensor
have its own size description for each pixel.

Yes
You can find the size of a pixel in the datasheet.

Quoted 2 lines

I guess each LCDs/Display Units have their own pixel sizes. In which case how the captured pixels are displayed on the LCD?

Depends on the user. Either 1:1 pixelwise or scaled to fit/fill the screen.

Quoted 2 lines

Should the definitions of pixels (sizes & format) of sensor and display unit match?

No.
Some cameras capture anamorph images to have less data.
And a pixel that is a few micrometer^2 usually represents a bigger area in reality due to the optics.

Quoted 2 lines

Do video applications have their own definition of how much size each pixel should have?

No.
Video applications don't care about real world dimensions. They just want to fill the screen.
They do care about the aspect ratio of the pixels, though.

Quoted 1 line

Does the size of the pixel size change if it is RGB or YUV422?

No.
But in YUV422 there is only one chroma sample for two horizontal pixels.

Daniel

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

author
#2 lore raw

thank you for quick response.

Quoted 8 lines · Daniel Glöckner
Quoted 1 line · Veda N

Are the sizes of each pixels same for all the sensor?

No

Quoted 2 lines

Does each sensor
have its own size description for each pixel.

Quoted 11 lines

Yes
You can find the size of a pixel in the datasheet.

Quoted 2 lines

I guess each LCDs/Display Units have their own pixel sizes. In which case how the captured pixels are displayed on the LCD?

Depends on the user. Either 1:1 pixelwise or scaled to fit/fill the screen.

Quoted 2 lines

Should the definitions of pixels (sizes & format) of sensor and display unit match?

Do you mean to say, scaling means just fill up the screen with whatever pixels you have
it does not matter what thier size are?.

In which case, If the camera sensor pixel sizes is 4 bytes/pixel and LCD supports only 2 bytes per pixel, Then i can fill up only half the pixels i have got.

Should this be done line by line or the entire frame wise?

Am i right?

Regards,
vedan

Quoted 13 lines

No.
Some cameras capture anamorph images to have less data.
And a pixel that is a few micrometer^2 usually represents a bigger area in reality due to the optics.

Quoted 2 lines

Do video applications have their own definition of how much size each pixel should have?

No.
Video applications don't care about real world dimensions. They just want to fill the screen.
They do care about the aspect ratio of the pixels, though.

Quoted 7 lines
Quoted 1 line

Does the size of the pixel size change if it is RGB or YUV422?

No.
But in YUV422 there is only one chroma sample for two horizontal pixels.

Daniel

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#3 lore raw
Quoted 5 lines · Veda N
Quoted 4 lines
Quoted 2 lines

I guess each LCDs/Display Units have their own pixel sizes. In which case how the captured pixels are displayed on the LCD?

Depends on the user. Either 1:1 pixelwise or scaled to fit/fill the screen.

Quoted 7 lines

Do you mean to say, scaling means just fill up the screen with whatever pixels you have
it does not matter what thier size are?.

In which case, If the camera sensor pixel sizes is 4 bytes/pixel and LCD supports only 2 bytes per pixel, Then i can fill up only half the pixels i have got.

I have the feeling we were talking about different sizes. I was talking about the dimensions of a pixel. In meter or inch...

Let me revise my answers for size=bits:

Quoted 1 line

Are the sizes of each pixels same for all the sensor?

No

Quoted 1 line

Does each sensor have its own size description for each pixel.

Yes
Some sensors are even analog and require external ADCs that are available in different bit depths.

Quoted 2 lines

I guess each LCDs/Display Units have their own pixel sizes. In which case how the captured pixels are displayed on the LCD?

By adding or removing lower bits to have the same bits per pixel.

When the destination has more bits per pixel:
Either add zero bits or replicate the high bits in the low bits.

When destination has less bits per pixel:
Discard lower bits. If you want you can account for the quantization error with "error diffusion".

The image data from Bayer pattern sensors needs to be interpolated to have all three components at every pixel. There are several methods in use. Dcraw f.ex. implements bilinear, VNG, PPG and AHD interpolation.

Quoted 2 lines

Should the definitions of pixels (sizes & format) of sensor and display unit match?

If you don't convert the data, it will look wrong.

Quoted 2 lines

Do video applications have their own definition of how much size each pixel should have?

Most video applications handle unknown FourCCs as compressed data and ask a decompressor to convert it to a known uncompressed format to be able to do image processing. So if you give a Y210 (10 bit YUV) video to an application that only understands 8 bit YUV, it will ask a plugin to convert to Y422. But there are applications that can work natively with Y210 data.

Quoted 1 line

Does the size of the pixel size change if it is RGB or YUV422?

As YUV422 has less samples per pixel than RGB and the RGB space is smaller than the YUV space and YUV usually does not use the complete range of possible values in a sample, I'd say you need less bits per sample in RGB than in YUV422. Simple applications will always convert to 8 bit per sample. Complex applications will probably use more than enough.

Daniel

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list