LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem making a 1 bit picture

Solved!
Go to solution

I have being trying to make a 1 bit image and I've tried a few ways to do this but have gotten nowhere with it. I hoping someone will see the mistakes I'm making and show me how to fix it, I've attached the program I was working on, the picture I was using is also been attached it might be handy I don't know.

Download All
0 Kudos
Message 1 of 7
(2,690 Views)

Hi alang,

 

why do you attach a weird office document when you want to attach a picture?

 

You could try that to convert a grayscale pic to a "1 bit" picture:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(2,655 Views)

I've tried doing it your way and it only giving me a white picture. It dosen't matter what value I put in the comparitor , any ideas what I should do?

0 Kudos
Message 3 of 7
(2,646 Views)

Hi alang,

 

at first you could attach your picture (after converting it to PNG)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(2,638 Views)

heres the picture

0 Kudos
Message 5 of 7
(2,630 Views)
Solution
Accepted by topic author alang1

Hi alang,

 

by converting to PNG I didn't mean just to rename the file...

 

Your BMP is a 24bit image, so you have to check the 24bit output of the image conversion routine. Then you simply check a single color component (as it's a gray level pic) for your comparison level:

check.png

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(2,627 Views)

You are a life saver that was driving me nuts

0 Kudos
Message 7 of 7
(2,621 Views)