Group Abstract Group Abstract

Message Boards Message Boards

1
|
4.8K Views
|
9 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Binarizing images of similar background and object color?

Posted 3 years ago
POSTED BY: Arim Gwon
9 Replies

Hi Arim

Not sure about your question, but you can use

ColorNegate[ ]

in case you just want to reverse black/white. Otherwise you need to be more specific, example, ...

Robert

POSTED BY: Robert Nowak

Oh, thank you so much! :)

POSTED BY: Arim Gwon
img // With[{r = 3}, (Closing[#, 10 r] &)@*(Opening[#1, 2 r] &)@*(GradientFilter[#, 6 r] &)] // Binarize // img # &

I am afraid that it will be very difficult to process similar images with the same set of filter parameters. So far the parameters are just a result of trial & error.

Robert

POSTED BY: Robert Nowak

If you use it in a similar image, let's adjust the parameters! Thank you for your advice.

POSTED BY: Arim Gwon

Hello, Is it possible for an additional binarized image to reverse the current object with a white background? (The object is black background of white)

POSTED BY: Arim Gwon

Hi, if you want the original image without background then just multiply with the binary mask.

POSTED BY: Robert Nowak
POSTED BY: Arim Gwon
POSTED BY: Robert Nowak
POSTED BY: Arim Gwon
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard