how to encode and decode negative pixel to positive pixel in matlab ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
nur aqila
am 3 Mär. 2018
Kommentiert: nur aqila
am 6 Mär. 2018
hi, I want to ask. I have 512x512 image and I want to calculate the entropy. But, it has some error because the pixel contains negative value. Has anybody in here know how to do Matlab code to convert negative pixel to positive pixel and decode it back? please help me
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 3 Mär. 2018
Try this:
negPixels = grayImage < 0;
grayImage(negPixels) = 0; % or 1 or whatever you want.
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!