spiral analysis and removal of background

Hi i am attaching an image. this has a computer generated spiral and a hand drawn spiral. i want to remove the numbers (angles) writeen on the image and check how the patient drawn spiral is different from the system generated.
please help me remove the numbers in this

Risposte (1)

Image Analyst
Image Analyst il 11 Feb 2024
You don't need to remove the numbers. Even if you did, a simple fixed, pre-made mask would let you erase them. What you need to do is to get the (x,y) coordinates of the computer line and the hand drawn line. Do you have those? If not, do you have the two line images as separate images? Otherwise one of the lines will have "breaks" in it where they overlap.
You can find each color with the Color Thresholder on the Apps tab of the tool ribbon.
You'll have to go along the spiral because you can't simply find out which the distance of the purple pixel to the closest blue pixel because sometimes the purple pixel is closer to the curve either closer or farther away from the center than the blue curve that it's supposed to be on.

6 Commenti

i have seperate files for each of it. can you please suggest me what kind of mask can remove those numbers. also i hae to see how any points did the hand drawn deviate from the base line spiral
Unfortunately you forgot to attach the two individual images.
You can either make a binary image with black where the numbers are, then do
yourImage(mask) = 255; % or 0
Or you can just extract the spiral alone with bwareafilt
spiralImage = bwareafilt(spiralImage, 1); % Extract largest blob.
If you have any more questions, then attach your two images with the paperclip icon after you read this:
I have attached the files now. unable to do it with both. Please suggest further
I won't be able to answer for at least 12 hours because I'm doing something tomorrow morning. In the mean time, attach your attempts (m-file(s)) and another, different set of images, in case the algorithm might work for one set but not a different set.
siri meka
siri meka il 12 Feb 2024
Modificato: siri meka il 12 Feb 2024
Hi,
Go rid of the numbers and also extracted the spiral. Now im trying to get the difference in both the images as (x,Y). Can you help me with this. Im attaching the new image here. I want to know how much B deviated from A in the cartesian coordinate system.
Did you find a solution for this problem?

Accedi per commentare.

Richiesto:

il 11 Feb 2024

Community Treasure Hunt

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

Start Hunting!

Translated by