Filter löschen
Filter löschen

The scale in imshow function

14 Ansichten (letzte 30 Tage)
Yasmin Tamimi
Yasmin Tamimi am 1 Nov. 2016
Kommentiert: Yasmin Tamimi am 1 Nov. 2016
Dear All,
When we write imshow(a,[]) the [] scales the whole image by how much. I tried to divide by 255 but it didn't give the same results as putting the []!
Regards,

Akzeptierte Antwort

Image Analyst
Image Analyst am 1 Nov. 2016
Doing [] takes the min of the image and puts it at 0 (black) and the max of the image and puts it at 255 (white). So let's say your image went from 60 to 130. Using [] would map 60 down to 0, and map 130 up to 255, and everything else would be linearly scaled in between.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by