Is it possible to select two points automatically from an image?

조회 수: 1 (최근 30일)
Atik Amin
Atik Amin 2023년 2월 3일
댓글: Atik Amin 2023년 2월 5일
I need to select only two points(coordinates) automatically marked with red crosses in the image titled "InkedCscan_Depth_1.3455". If this is not possible I would like to extract the lines as we generally see in plots (.fig format)
The angle in the image shows the orientation of the lines I want to inspect
I need help please

답변 (2개)

Walter Roberson
Walter Roberson 2023년 2월 3일
Information can only be automatically extracted if there is a programmable rule that describes how to distinguish the information from the rest of the data.
I see nothing in that image that would permit you to pick those particular points as being distinguished. I have no idea how you choose them.
The image appears to be similar to texture of a fabric. If you are trying to detect the "threads" then you might possibly be able to use houghlines . It would not astonish me if you had to "invert" the image so that the "thread" positions were bright and the holes were dark.
  댓글 수: 2
Atik Amin
Atik Amin 2023년 2월 3일
Thank you for your reply. Can you show me an example please? That will be of much help
Walter Roberson
Walter Roberson 2023년 2월 3일
You might want to start with rgb2gray followed by imbinarize with 'ForegroundPolarity','dark' in order to produce the black and white image.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2023년 2월 4일
Explain why those two particular lines were picked? I see nothing special about them or any different than any other point in the image. You might look at radon to get a projection of your image at all angles to look for the angle where most of the lines are along.
  댓글 수: 10
Image Analyst
Image Analyst 2023년 2월 5일
Sorry, but no it's not. You have not attached any additional images, only the one in the original post up top. The original image will not be a screenshot. It will not have tick marks, axes labels, red X's, theta, etc. like the image you attached has. It will be just a plain gray scale image.
Atik Amin
Atik Amin 2023년 2월 5일
Got it. I will try to get the image. I appreciate your efforts. Let me try myself a few more days with the methods mentioned earlier.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by