Jump to content

IMAQ ImageToArray issue


Recommended Posts

Hello,

I have begun a VI to manipulate jpg : the VI takes 2 jpg, convert them to BW, scales and translates them and finally superimpose recompile them as different color channel (Red and Green) of a new image.

This does work well until the recombination step : I cannot get any output from the ImageToArray function. I tried many work around such as saving the image in another file, changing the structure of the file (event - stacked), using local variables, ... but nothing seems to work

Thank you for any help or comments,

Pierre

SLMv05.vi

Link to comment

Problem solved with the merge overlay function : see thread https://forums.ni.com/t5/Machine-Vision/save-image-with-overlay-to-jpeg-file/td-p/99104

The problem lies in the principle of the overlay, which does not alter the initial image (just the Labview display). To alleviate it you basically just need to invert a merge overlay function.

Cheers,

Pierre

Link to comment

You could also do all of this using just the Vision functions, without using arrays or overlays, and it's probably much easier.  Have a look at the IMAQ ReplaceColorPlane function, which allows you to place grayscale images in separate planes of a color image.  To translate the images, look at the IMAQ ImageToImage function which is used to place a small image at a specified location within a larger image.

 

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
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.