05-07-2013 09:44 AM
Thanks for both of you alexderjuengere and GerdW for answering me 😄
I've tried the VI of alexderjuengere in a pc with LabVIEW 2012 and that's what I really want , it's the perfect solution 🙂
THANKS for all of you 🙂
05-07-2013 10:01 AM
@salah_m7 wrote:
Thanks for both of you alexderjuengere and GerdW for answering me 😄
I've tried the VI of alexderjuengere in a pc with LabVIEW 2012 and that's what I really want , it's the perfect solution 🙂
THANKS for all of you 🙂
I have to admit, GerdW's approach is much more generic because in his approach you're in immediate command of the image depth; my approach always use 24 bit image depth ...
oh, and - as I've just checked - you needn't to divide by two
05-07-2013 10:19 AM
I'm sorry alexderjuengere but I didn't understand why in your approach we are limited to 24 bit image depth
05-07-2013 10:44 AM
Oups xD now I see why. (I'm sorry but this is my first time to deal with pictures in LabVIEW)
And for GerdW: your VI also worked for me :), but the first time it didn't work well because it was my fault I haven't understood your comment clearly but I've changed the values of the constant clusters and finally I've got what I need, thank you very much 😉
Thanks LabVIEW community 😄
05-07-2013 10:45 AM
@salah_m7 wrote:
I'm sorry alexderjuengere but I didn't understand why in your approach we are limited to 24 bit image depth
ok, I didn't express myself clearly.
we are not limited to 24 bits, but it is not that comfortable to switch to a different resolution.
what I really wanted to point out is that I used a u32 (r, g, b, alpha a 8 bits * 4 = 32 bits) to represent a binary image (true, false a 1 bit).
From my idealistic point of view I would rather prefer somthing like this
05-07-2013 11:13 AM
@alexderjuengere wrote:
From my idealistic point of view I would rather prefer somthing like this
Can you explain the "=true"? What would happen if you leave it out? 😄
05-07-2013 11:15 AM - edited 05-07-2013 11:15 AM
Here's what I would do. (Simple problems ask for complex math! :D)
Note that the origin is in the upper left corner and Y is positive going down. Modify as needed.
05-07-2013 11:19 AM