필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Determing pixel locations of an object

조회 수: 2 (최근 30일)
Ellis Berry
Ellis Berry 2016년 4월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi everybody, So I am developing a programme which performs image processing on only a certain area of the picture in question. Initially, I cropped the picture to the area on the picture that I want to process, but it turns out, as the object moves around in subsequent pictures, I need a method to 'track' where the area is in EVERy picture before I can process it. What I have decided is to pinpoint the area im interested in based on colour. So it is a white strip of paper I am interested in and I have developed code to find this piece of paper and then convert the image to binary. This means the strip of paper will appear white (pixel value 1) and everything else outside the threshold will appear black (pixel value 0). What I need to do now is find a way of determining where all the pixel values 1 (white) are in the picture!? Then I can save them to a matrix and make the processing code only run on that matrix then? I hope this makes sense. *In short, how do I determine the pixel point of every white pixel in an otherwise black image?*
Many thanks, Ellis

답변 (1개)

Image Analyst
Image Analyst 2016년 4월 28일
You said you already "I have developed code to find this piece of paper and then convert the image to binary" so that binary image IS a variable that says where every white pixel in the image is located. I don't know what else you'd need. You just call regionprops() and you're done.

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by