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 次查看(过去 30 天)
显示 更早的评论
Neural Network Learning purpose
0 个评论
回答(1 个)
Image Analyst
2016-5-7
Try this:
thePixelIntensity = grayImage(row, column);
If grayImage has values of only 1,0,-1, then thePixelIntensity will obviously have the same values.
2 个评论
Image Analyst
2016-5-9
If you want an image in the range of -1 to 1, do this
normalizedImage = 2 * mat2gray(grayImage) - 1;
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!