Clear Filters
Clear Filters

how do I draw discriminatory lines in an image to calculate the area in each of those regions?

1 view (last 30 days)
Hello, I am exploring matlab and I was wondering how do i draw circular lines that classify particular regions of that image? So that later on I can calculate the area of that region seperatley than the other regions?
I have several images and I am wondering which methods I can use to segment regions within that image from other regions in that same image.
Thank you

Accepted Answer

Image Analyst
Image Analyst on 10 Jan 2023
Neo on 13 Jan 2023
If you just want the mean gray level in 12 strips going across the image:
What does it mean to have the measure the gray level? Also how to read the output ?
startingColumns =
1 44 86 129 172 214 257 300 342 385 428 470 513
endingColumns =
43 85 128 171 213 256 299 341 384 427 469 512
Image Analyst
Image Analyst on 13 Jan 2023
The gray level is the brightness of the image pixels.
Those values are the starting and stopping columns of the vertical strip where we are going to get the mean intensity in.

Sign in to comment.

More Answers (1)

Matt J
Matt J on 9 Jan 2023
Edited: Matt J on 9 Jan 2023
I was wondering how do i draw circular lines
You can use drawcircle.
More generally, you can segment interactively with the Segmenter App
Neo on 15 Jan 2023
I have asked it in another question but I cant tell that it has been performed background substraction, gaussian and contrast correction before mean grey level analysis. How can you?
Image Analyst
Image Analyst on 15 Jan 2023
I don't see anything being subtracted from the gray scale image in the code above. You need to read in a background image and then subtract it. Decide where you want to discuss this. I suggest your new thread just about background subtraction. (Note spelling of subtraction -- there are not two s's).

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!