Halcyon Posted September 24, 2005 Report Share Posted September 24, 2005 Hi, I wanna display an 8 bit gray picture in labview without changing it to 24bit( each 8 bit is same), how can I do? Thanks! Quote Link to comment
Irene_he Posted September 24, 2005 Report Share Posted September 24, 2005 Do you mean that you have a 24bit color image and you want to extract the colors to 3 8bit gray image? If so, if you can get an array of the 24 bit color image, then deinterlace the array to 3 output arrays, each output array is your gray image data. But you need to know what is your color image color order, some are RGBRGB... but some image output in the order of BGRBGR... so that you know which output array is R, which is G and which is B. But I guess I may misunderstand you. Maybe you just want an image window or picture control that can display gray image. If so, at least I know IVision LabVIEW toolkit can do it. The image window accept 8bit gray image or 24bit color image. Link is here: http://www.hytekautomation.com/Products/IVision.html Irene Quote Link to comment
Halcyon Posted September 25, 2005 Author Report Share Posted September 25, 2005 I just want an image window to display gray images, but I can't open the link you give me. Quote Link to comment
MGulley Posted September 28, 2005 Report Share Posted September 28, 2005 I just want an image window to display gray images, but I can't open the link you give me. If you have 2D array of grayscale values, you can display the array in an Intensity Graph display. If you set the colormap of the Intensity Graph to ramp from black-to-white, (and enable interpolate colors), the data will be displayed as a gray image. Quote Link to comment
WMassey Posted September 28, 2005 Report Share Posted September 28, 2005 If you have not discovered OpenG then you really need to get over there and take the time to figure out how to download and install the libraries found there. It all starts with "OpenG Commander"... :thumbup: But, with that said, it can be a bit imposing the first time you download/install it so I've attached a bit of one of the libraries to this message and it contains enough to do what you want to do. It'll open/read/display an image file. I've even tossed in some color lookup table data (in the form of a VI) so you can truely force the display to be gray (or yarg which is gray inverted). Download File:post-2800-1127945724.zip Quote Link to comment
Halcyon Posted September 29, 2005 Author Report Share Posted September 29, 2005 Thank you! Quote Link to comment
Halcyon Posted September 30, 2005 Author Report Share Posted September 30, 2005 If you have 2D array of grayscale values, you can display the array in an Intensity Graph display. If you set the colormap of the Intensity Graph to ramp from black-to-white, (and enable interpolate colors), the data will be displayed as a gray image. It did work! But I don't know how to set the colormap of the Intensity Graph. I tried to find the corresponding property node but failed. Quote Link to comment
WMassey Posted October 10, 2005 Report Share Posted October 10, 2005 It did work! But I don't know how to set the colormap of the Intensity Graph. I tried to find the corresponding property node but failed. And, for those that don't know about color boxes on the block diagram, you create a color box on the Front Panel and then drag it from there onto the Block Diagram. Delete it from the front panel and use the copy on the block diagram. Click on it with the "finger" to change colors.. Quote Link to comment
Mark Balla Posted October 10, 2005 Report Share Posted October 10, 2005 you create a color box on the Front Panel and then drag it from there onto the Block Diagram. Delete it from the front panel and use the copy on the block diagram. You can also get the color box constant directly from the Block Diagram. 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.