Jump to content

VI modifies the source image


Recommended Posts

Hi guys,

In the help description of many image processing VIs, there is this particular note:

"This VI modifies the source image. If you need the original source image, Create a copy of the image using IMAQ Copy before using this VI."

Is this really true even if you connect a separate image to the "Image Dst" connector? I have tried it with the "IMAQ Convolute" VI and I can't see any difference been made to the source image. Actually, in time critical applications, it would be quite a terrible waste of time having to copy the original image every time I want to run a processing VI and still keep the original image.

Is there any document describing deeper how IMAQ VIs work at low level? Besides my current question, I would like to know also the details about memory allocation etc...

Vladimir

Link to comment

What the documentation should say is "If you do not wire in a destination image, this VI modifies the source image. If you need the original source image, create a copy of the image using IMAQ Copy and wire the copy in as the destination before using this VI."

Link to comment

Thanks for the explanation. This is quite a misleading statement in the documentation...

Anyway, I still wonder why this statement does not appear at all processing VIs. Take e.g. IMAQ CannyEdgeDetection, there is no such note there, though the VI works the same way.

Still I would appreciate some more insider info... Let's assume that we are running the processing VIs on one image only (Dst unwired). Some processing algorithms require a separate temporary image to be allocated during the processing, some don't. Where can you get the information about which ones do and which ones don't? This is a critical question if you are trying to optimize the application for speed.

Vladimir

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.