Imhist func not working for a user made matrix!!
이전 댓글 표시
I need to do a basic operation in a window of an image.I defined a matrix(as a given window.)now i want to find it's histogram..the value x and y ([x y]=imhist(matrix))are not what one would expect if it would have been an image.
댓글 수: 3
Matt J
2018년 2월 18일
Maybe your expectations are wrong?
Pritisman Kar
2018년 2월 19일
Jan
2018년 2월 19일
@Pritisman Kar: Please post the code, some example input data and explain your expectations. Currently your question is not clear.
답변 (2개)
Abhishek Ballaney
2018년 2월 20일
0 개 추천
https://www.mathworks.in/help/images/ref/imhist.html
Walter Roberson
2018년 2월 20일
0 개 추천
Your synthetic matrix has values greater than 1 but it is class double, because you did mathematical calculations on uint8 values in the range 0 to 255 that are not defined for uint8 so you had taken double() of your uint8 data. But you forgot that you need to uint8() back afterwards before image processing.
카테고리
도움말 센터 및 File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!