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

1 visualizzazione (ultimi 30 giorni)
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

Risposte (2)

Walter Roberson
Walter Roberson il 3 Feb 2023
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 Commenti
Atik Amin
Atik Amin il 3 Feb 2023
Thank you for your reply. Can you show me an example please? That will be of much help
Walter Roberson
Walter Roberson il 3 Feb 2023
You might want to start with rgb2gray followed by imbinarize with 'ForegroundPolarity','dark' in order to produce the black and white image.

Accedi per commentare.


Image Analyst
Image Analyst il 4 Feb 2023
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 Commenti
Image Analyst
Image Analyst il 5 Feb 2023
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 il 5 Feb 2023
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.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by