Ask Your Question
0

Detect the `Shaded Region` and Remove it [closed]

asked 2018-06-14 23:21:38 -0600

abeltan13 gravatar image

Hi,

I have a diagram like these:

diagram with shaded regions image description

I would like to detect the region which is shaded. Obviously, the shaded region is not really shaded, it just consists of a dense array of lines. I am also makeing a line tracing algorithm to detect the real lines, but these shaded lines distract my algorithm , so I need to remove them.

How do I detect the shaded regions and remove them?

Thanks a lot!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by LBerger
close date 2018-06-17 05:40:16.743983

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-06-15 01:32:04 -0600

LBerger gravatar image

updated 2018-06-16 07:23:06 -0600

Try :

  1. Blur image with a 13x13 window size
  2. otsu threshold
  3. use threshold image as mask to clear region
  4. bitwise_not of threshold image
  5. erode image (5 iterations)
  6. bitwise_and eride image and original image image description
edit flag offensive delete link more

Comments

Hi LBerger,

that is what I did. Unfortunately, the blur got rid of one of the True lines as well. The horizontal dotted lines going across the semicircle.

abeltan13 gravatar imageabeltan13 ( 2018-06-15 03:07:34 -0600 )edit
1

wow, magic. Thanks a lot!

abeltan13 gravatar imageabeltan13 ( 2018-06-17 05:02:50 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-06-14 23:21:38 -0600

Seen: 429 times

Last updated: Jun 16 '18