Clarifying sub-pixel concept
13 views (last 30 days)
Show older comments
Mathematically, sub-pixel is some pixel with decimal (non a.000000..., b.000000...), a and b apart from 0, coordinates.
According to the Mira convention, a pixel P(c.000000..., d.000000...), c and d apart from 0, is at center of the cell which begins at (((c - 0.5).000000...), ((d - 0.5).000000...)) and ends at (((c + 0.5).000000...), ((d + 0.5).000000...)). So, the sub-pixels relative to pixel P(c,d), for example, doesn't delete it.
What I've just spoken about is just a standardization. However can the sub-pixel be seen like this too: be a pixel P(c, d) which is divided into m x n sub-pixels, doing the pixel P(c, d) disappears?
If the two approaches are correct, what is more affordable?
16 Comments
Image Analyst
on 2 Jul 2016
Whether you scale up or scale down, if the new pixel locations don't like on integer locations of your original image, then you will be interpolating image intensity values at subpixel locations. Yes there is a way you can do that. It's with imresize(). Note that this only interpolates values - it does not give you better optical resolution like as if you had a better lens or pixel with more pixels over the field of view. If you take a picture of the moon with your telescope and it has an optical resolution of 10 meters, and your digitally resample it to have a "resolution" of 1 mm, then it's not like you'd now have a picture as sharp as if you'd scanned the moon with a microscope - it will look blurry.
You can get subpixel resolution but you have to have multiple images. As a simple example, if you had a picture of something, and then moved your sensor over in your camera, say with a piezoelectric translator, by half a pixel, then you could combine those images to come up with a new image that had twice the resolution of either one of those single images, subject to the limitations of the lens of course.
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!