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!