04-04-2013 10:22 PM
Hello everyone.
How to save binary image in a computer? If I right click on the image, then choose 'Save Image...', the picture saved will appear blank. I understand the image is in 0 and 1 but I do not know how to set up the code.
Thank you.
Solved! Go to Solution.
04-09-2013 02:31 AM
Right click==>Save Image
works perfect
04-09-2013 02:46 AM
If I right click and save image, the image will appear black..
04-09-2013 02:49 AM
I don't know about yours, but mine works absolutely perfect
04-09-2013 07:53 AM
The image is saving correctly, but like you say it looks black. Standard viewers do not rescale the pixel intensities.
If you want a black and white image, you need to increase the value of the brighter pixels before saving. One trick I use is multiplying the image by 255, which turns all the non-zero pixels into the brightest possible pixel. There are probably more efficient methods, such as a lookup table, but multiplying is quick and dirty.
Bruce
04-09-2013 08:06 AM
Bruce is right. Here is a discussion on this:
http://forums.ni.com/t5/Machine-Vision/How-do-you-write-an-image-threshold-to-a-file/td-p/93172
04-09-2013 07:55 PM
Hi Bruce.
I am not sure how to do the multiplication by 255. You mean multiply the whole program by 255 or just multiply the image?
Thanks.
04-10-2013 08:14 AM
Use IMAQ Multiply to multiply the image times 255.
Bruce
04-25-2013 12:38 AM
hi can plz help me out.....i want to show grayscale images into Bitmap (0-7 bits). Is it possible to show garyscale image into bitmap 1 bit, 2bit,..upto...7bit image.
04-25-2013 12:38 AM
hi can plz help me out.....i want to show grayscale images into Bitmap (0-7 bits). Is it possible to show garyscale image into bitmap 1 bit, 2bit,..upto...7bit image.