pixel rearrangement in an grayscale image

조회 수: 1 (최근 30일)
siddharth
siddharth 2016년 2월 1일
답변: Walter Roberson 2016년 2월 1일
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