Jump to content

Transform to binary image


Recommended Posts

Hi, I have used a tresholding method to my original image and I get a black and white image. I need to transform it to a binary image. How to do it? It is still grayscale in output. Thanks.

Is the image greyscale or black and white? Why don't you post a couple of jpegs to show us whats going on?

Black and white IS binary after all if the image only contains pixel values of 0 (black) and 255 (white).

Neville.

Link to comment

Hi, I have used a tresholding method to my original image and I get a black and white image. I need to transform it to a binary image. How to do it? It is still grayscale in output. Thanks.

Instead of replacing threshold values with 255 (to get your black and white) replace with 1. Your picture control will look all black. If you want to see the results in the picture control, right click on it and select Palette>binary. You will then have a red and black image. Either your black and white or red and white images (binary) will work with mask functions as effectively they operate on zero and non zero for binary operations.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.