how to dilate the gray scale image and threshold value only on ROI?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a gray scale image that has several objects in it. can anyone tell me how to apply threshold only to one object( which is my ROI) in the image?
댓글 수: 0
채택된 답변
Susan
2013년 4월 10일
If you created an ROI object, you can create a binary mask from the ROI. Then, you can specify an arbitrary image matrix where the values corresponding to where the mask = 1 are the original gray values, and all others are zero. You can then threshold the new image, since it only contains your ROI, with all other pixels being black. Finally, reverse the process and in the original image, say that anywhere the mask = 1 is now equal to the new, thresholded, image values.
In order to explain this better, I'd have to know more about your code. What function are you using to get your ROI?
댓글 수: 5
Image Analyst
2013년 4월 10일
No good for me either. Try another site like tinypic, picturepush, snag.gy, etc. Or look here: http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
추가 답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!