how to normalize the image please provide the code for it

5 vues (au cours des 30 derniers jours)
himanshu sharma
himanshu sharma le 23 Avr 2015
Commenté : Image Analyst le 26 Avr 2015
to noramlize an image please provide the matlab code

Réponse acceptée

Ahmet Cecen
Ahmet Cecen le 23 Avr 2015
Since you graced us with absolutely no specifics, I am assuming you are looking for the simplest take on the term image normalization, in that case:
NormalizedImage=(Image-min(Image(:)))*(255/range(Image(:)));
  3 commentaires
Jan
Jan le 26 Avr 2015
@himanshu sharma: Please format your code properly. And please give us a chance to answer your question by providing the definition of what you call "normalization". The code posted by Ahmet does create a result and it is a usual type of normalization. Claiming only that you do not get a result does not allow to give further suggestions without guessing, what you exactly do and get.
So I strongly recommend to editi the original question and provide the required information where the readers expect them.
Image Analyst
Image Analyst le 26 Avr 2015
Try calling imread() instead of importdata().

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type 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!

Translated by