kate Posted April 25, 2007 Report Share Posted April 25, 2007 hi there, I need some help to convert image to 2d array and 2d array into 1d array? if the image has 24 bits, I need to convert it to grayscale 8-bits Quote Link to comment
Tomi Maila Posted April 25, 2007 Report Share Posted April 25, 2007 You forgot to mention what data type is your original image that you need to convert and what kind of 2d array and 1d array do you need to convert your image to. Please provide this information. It would help if you could specify the needed data types in LabVIEW code. Tomi Quote Link to comment
PJM_labview Posted April 25, 2007 Report Share Posted April 25, 2007 QUOTE(kate @ Apr 24 2007, 03:21 AM) ...I need some help to convert .../... 2d array into 1d array? Use the reshape array primitive in the array palette. http://forums.lavag.org/index.php?act=attach&type=post&id=5620''>http://forums.lavag.org/index.php?act=attach&type=post&id=5620'>http://forums.lavag.org/index.php?act=attach&type=post&id=5620 PJM Quote Link to comment
Neville D Posted April 25, 2007 Report Share Posted April 25, 2007 QUOTE(kate @ Apr 24 2007, 03:21 AM) hi there, I need some help to convert image to 2d array and 2d array into 1d array? if the image has 24 bits, I need to convert it to grayscale 8-bits Do you have the IMAQ Vision toolkit? It is an add-on NI product. I would recommend you get it if you don't already have it; (it is expensive though and needs separate paid, run-time licence as well for executables). There are functions to convert Image buffer to 2d array as well as functions to cast an image to another type. These are optimized for speed when dealing with large image buffers. Neville. 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.