John Kelly Posted December 4, 2006 Report Share Posted December 4, 2006 Greetings from a newbie, I'm doing some image processing with LV7.0. My client doesn't want to updgrade. My task is to read in a .bmp file that's written by another process snagging images, and then cause some stages to move based on the contents of the bmp. I'm trying to examine the values of the 2D array that I've created from the 8-bit pixel data. Could anyone suggest a technigue for display the contents of a 2D array of unsigned byte [8-bit integer (0 to 255)]'s? I tried dropping an array display on the front panel, and setting the number of dimension to 2, but when I wire up my 'unflatten pixmap.vi' 8-bit pixmap output to the array input, I get an error message complaining the source is unsigned 8-bit integer, but the sink is type void. Can I coerce the type? How does one do that? Thanks for any help you could provide, I'd be glad to provide any additional info that would be helpful. Regards, John Quote Link to comment
Ton Plomp Posted December 4, 2006 Report Share Posted December 4, 2006 Hi John, it sounds like you have an empty (void) array. Right click on the FP-array and add a numeric indicator, this will provide a datatype for the array, and LV can put things in it. Ton Quote Link to comment
crelf Posted December 4, 2006 Report Share Posted December 4, 2006 The array that you've got on your front panel hasn't got anything in it, so it's a void. ONce you put another front panel control (like the numeric you're taking about) in there, then it will adapt to that type. EDIT: Quick work Ton - you beat me to it! Quote Link to comment
Chris Davis Posted December 4, 2006 Report Share Posted December 4, 2006 Greetings from a newbie, I'm doing some image processing with LV7.0. My client doesn't want to updgrade. My task is to read in a .bmp file that's written by another process snagging images, and then cause some stages to move based on the contents of the bmp. I'm trying to examine the values of the 2D array that I've created from the 8-bit pixel data. Could anyone suggest a technigue for display the contents of a 2D array of unsigned byte [8-bit integer (0 to 255)]'s? I tried dropping an array display on the front panel, and setting the number of dimension to 2, but when I wire up my 'unflatten pixmap.vi' 8-bit pixmap output to the array input, I get an error message complaining the source is unsigned 8-bit integer, but the sink is type void. Can I coerce the type? How does one do that? Thanks for any help you could provide, I'd be glad to provide any additional info that would be helpful. Regards, John You might want to look at the picture control or intensity graph to display your image, rather than an array display. Quote Link to comment
John Kelly Posted December 5, 2006 Author Report Share Posted December 5, 2006 Good morning, Thanks Ton, Chris and Chris for your prompt and correct suggestions. :beer: 's for all, on me! Best, John Quote Link to comment
crelf Posted December 5, 2006 Report Share Posted December 5, 2006 :beer: 's for all, on me! Bring it on! Quote Link to comment
Ton Plomp Posted December 5, 2006 Report Share Posted December 5, 2006 Bring it on! Amstel please Ton Quote Link to comment
Chris Davis Posted December 5, 2006 Report Share Posted December 5, 2006 Make mine a Heineken! Quote Link to comment
crelf Posted December 5, 2006 Report Share Posted December 5, 2006 Ooooo - I could so go a Tooheys Old. Quote Link to comment
John Kelly Posted December 8, 2006 Author Report Share Posted December 8, 2006 Even though I'm a newbie...and a rank LabView punk to boot... ...I think I'm gonna like it here! :worship: -JJ Quote Link to comment
crelf Posted December 8, 2006 Report Share Posted December 8, 2006 ...I think I'm gonna like it here! Glad to hear it John - make yourself at home Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.