Jump to content

2d array into 1d array


Recommended Posts

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

Link to comment

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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.