Matlab image centroid simulation
Mostrar comentarios más antiguos
Hi, I was given this task, I am a noob and need some pointers to get started with centroid calculation in Matlab:
Instead of an image first I was asked to simulate a Gaussian distribution(2 dimensional), add noise(random noise) and plot the intensities, now the position of the centroid changes due to noise and I need to bring it back to its original position by -clipping level to get rid of the noise, noise reduction by clipping or smoothing, sliding average (lpf) (averaging filter 3-5 samples ), calculating the means or using Convolution filter kernel - which does matrix operations which represent the 2-D images
2 comentarios
Image Analyst
el 24 de Mayo de 2013
Is the Gaussian distribution in the intensity dimension or the lateral dimensions. If it's in the intensity dimension you have a "uniform" image but the intensity of each pixel has noise, like 180 +/- 30 or something like that. If it's Gaussian in the lateral spatial dimensions, then the image will be brighter at the middle (or somewhere) of your image and then get darker as it goes away from that point.
Sana
el 30 de Mayo de 2013
Respuestas (1)
Image Analyst
el 30 de Mayo de 2013
You would need some pretty large noise to shift the mean because it clipped. But what I would do is to identify the 255 pixels or the 0 pixels and calculate the mean of the image without those pixels:
clippedPixels = grayImage == 0 | grayImage == 255;
meanGrayLevel = mean(grayImage(~clippedPixels));
Assuming there are enough noise pixels left that are not clipped, that will give you your answer.
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!