pixel rearrangement in an grayscale image
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
siddharth
le 1 Fév 2016
Réponse apportée : Walter Roberson
le 1 Fév 2016
Hello:
I have an gray scale
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153728/image.png)
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 commentaires
Walter Roberson
le 1 Fév 2016
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.
Réponse acceptée
Walter Roberson
le 1 Fév 2016
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!