Combine multiple objects to create Super Sampled representation
Show older comments
Hi, I have an image consisting of holes and want to create a "composite" representation by combining all of them.

I believe the idea is that because the centroid of each on jitters (i.e. is not in exactly the same location as seen by the red dots), its possible to to use this to create a super resolved reconstruction. As far as I udnerstand, I can for example consider 1/2 pixel and hence create a 18x18 (sub pixel) image from this 9x9 pixel image. So I need to start at the centroid and step 1/2 pixel away and record the actual real pixel value and then populate this in the 18x18 array. I do this for all 3 and then I can for example take the median on a pixel basis.
The problem is, considering the 1st image, Im not sure how to get the 1/2 pixel values from the centroid to then fill in the 18x18 array.
any pointers would be appreciated.
Thanks
Jason
12 Comments
- Please attach the individual images without the red dots, preferably as Matlab variables in a .mat file
- Is the idea that the 3 thumbnails are all sub-pixel translations of the same object?
- Does the intensity distribution follow some known model? Are they Gaussian blobs, for example?
Jason
on 17 Oct 2023
Matt J
on 17 Oct 2023
Thanks, but could you put all the variables in one .mat file? It is less tedious to download.
So basically you want to find the σ parameter of the Gaussian based on all the patches simultaneously? Once you know σ, you can generate a Gaussian blob of any size and resolution that you wish.
To save multiple variables to a .mat file:
a=1; b=2; c=3;
save matfilename a b c
But the centroids are not exactly 1/2 pixels apart. If I understand, there is nothing known or guaranteed about the relative separation of thhe blobs. Therefore, if you interweave all the pixel values from all of the images, you will have some scattered (i.e., non-gridded) data set. You can interpolate the scattered data using griddata or scatteredInterpolant at the half pixel locations if you wish. However, you could have also done that interpolation with just one of the images. It's not clear what advantage you hope to get from the combined data. In both cases, interpolation will be required, and the resulting noise will be the same.
On the other hand, if you there is some parametric surface you are trying to fit, then the surface fitting process would benefit from having more data - it will reduce the noise in the fit.
Jason
on 18 Oct 2023
Jason
on 18 Oct 2023
Hi Matt, thanks for your thoughts. As I understand this is very similar to the slanted edge MTF where the slant gives you the ability to super resolve.
But in that scenario, people are normally curve fitting. They assume that the LSF is a Gaussian lobe or a spline or something like that. That's why I asked you to begin with whether there was a parametric surface model that the samples are supposed to follow.
Accepted Answer
More Answers (0)
Categories
Find more on Image Category Classification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


