how can select a region in image?
이전 댓글 표시
hi i need to select a region in image and then save the value of those pixels by using impixel i can choose some pixel by clicking on picture but it is bothersome and i need to select a lot of pixels some function such as imrect dose not get me the value of pixel can you help me please?
채택된 답변
추가 답변 (2개)
Daniell Algar
2013년 2월 2일
편집: Daniell Algar
2013년 2월 2일
0 개 추천
Sounds like you want the function imfreehand.
Steve has posted about this befor, see e.g. http://blogs.mathworks.com/steve/2011/01/11/freehand-segmentation-in-the-a-b-plane/.
댓글 수: 2
nadia naji
2013년 2월 2일
syafienaz anuar
2017년 2월 3일
do you have solution for this problem? cause i need it too
molly jane fitches
2017년 5월 16일
0 개 추천
I am using Maltab R2015a and it crops up with an error caused by the line: burnedImage(binaryImage) = 255;
I believe this is due to the fact that graphic handles are now objects rather than handles. Any advice on how to get around this?
댓글 수: 1
Image Analyst
2017년 5월 16일
No, that's not true. The line of code should work. Anyway, burnedImage is NOT a graphics handle - it's a normal 2-D numerical array. You did something not in my demo. I just ran the demo ( my code)in R2017a and it worked beautifully. I can't fix your code (which is different from mine) unless you attach it.
카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!