pixel rearrangement in an grayscale image

4 次查看(过去 30 天)
Hello:
I have an gray scale
image (1620, 1220), this is a noisy speckle image, I would like to rearrange the pixels of this image in a Gaussian fashion, i.e the all the brightest pixels should be put together(near the mean) followed by the less bright pixels away from the mean, can this be done?
  2 个评论
Walter Roberson
Walter Roberson 2016-2-1
Do you mean that the bright pixels should be put together near the middle? The mean is the average of all of the pixels including the dark ones, and if you put the bright ones together they are going to be brighter than the mean.
siddharth
siddharth 2016-2-1
Let me rephrase my question, I want to arrange all the pixels in such a way that all the brightest pixels of same value( on a scale of 0-255) are together, starting from the center of the image(810,610) as the image resolution is 1620 x1220. then the less bright pixels lie on on the periphery and so on. the line profile is should be like, the pixel intensities decreases exponentially as one move radially out from the center(brightest) pixel to the less brighter pixels (in any direction). the analogue of this would be the Gaussian beam profile of a laser, when imaged on a charge coupled device camera.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2016-2-1
Sort the values. Then write them into a matrix of the right size in a spiral order. except that then some pixels of the same value might be spread out in a chain which is one definition of together but a different definition would require clumping...

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by