How to get the intensity of pixels of a gray scale image with a gray background around 0.0, with white at +1 and black at -1 ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Neural Network Learning purpose
0 Kommentare
Antworten (1)
Image Analyst
am 7 Mai 2016
Try this:
thePixelIntensity = grayImage(row, column);
If grayImage has values of only 1,0,-1, then thePixelIntensity will obviously have the same values.
2 Kommentare
Image Analyst
am 9 Mai 2016
If you want an image in the range of -1 to 1, do this
normalizedImage = 2 * mat2gray(grayImage) - 1;
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!