LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ Copy Overlay for images of different size

Hi Ppl,

 

I want to copy overlay from one image (Small) to another image (Large). Since the images are not of equal size the overlays from the smaller image always get copied on the top part of the larger image. Is it possible to copy these overlay with some offset specified on the larger image.

 

1.jpg 

 

The above image shows the result of copying overlay from a smaller image to a larger image.

 

2.jpg

 

Is it possible to copy the overlay as above with some offset from the smaller image to the larger image.

 

 

Thanks 

0 Kudos
Message 1 of 12
(5,305 Views)

Hi,

 

With IMAQ copy overlay it's not possible to set the position.

What you could do is to take the rectangle of the first overlay, get the size of the first image and the second image, calculate the differnce in x and y and add it to the rectangle of the first overlay. This you can use than as rectangle for a new overlay for the second image.

 

Christian

0 Kudos
Message 2 of 12
(5,291 Views)

Maybe something like the attached image..

Message 3 of 12
(5,289 Views)

Hi Christian,

 

Your idea will work fine. But in my case the source image (Small) has quite a few overlays (rectangles). So recalculating these rectangles and re overlaying become cumbersome. Thats why I was searching for a way to copy overlays with some offset specified.

 

Thanks 

0 Kudos
Message 4 of 12
(5,274 Views)

Hi,

 

I didn't know that you have more then one overlay. You are right, in that case it's a bit of work to do all that calculations and resizing.

But this is also the only way I know.

 

 

Christian

0 Kudos
Message 5 of 12
(5,255 Views)

Hi everybody,

 

A few years later... is it still impossible to copy the overlay of a small image to a bigger one with an offset?

For instance, I process an image and I get overlay results (even without knowing exactly the overlay objects drawn) and I want to copy this image with its overlay in a bigger image at a specified offset...

IMAQ ImageToImage 2 seems not to do the job...

 

Thanks

 

Lionel

0 Kudos
Message 6 of 12
(4,635 Views)

you can suggest this is labview idea exchange

0 Kudos
Message 7 of 12
(4,620 Views)

 I would happily do the necessary calculations, but I don't know how ot get the overlay results! I'm trying to move my clamp overlay results obtained on a cropped image back into the orginal image... but how?!

_____________
Creator of the BundleMagic plugin for LabVIEW!
0 Kudos
Message 8 of 12
(4,419 Views)

I would say that you have to get numeric results from the tool and re-create a hand-made overlay result on your original image... Smiley Sad

0 Kudos
Message 9 of 12
(4,403 Views)

Point being, the tool (clamp, for instance) applies an overlay but not the vectors. You are suggesting rewriting the tool? I just want the overlay vectors

_____________
Creator of the BundleMagic plugin for LabVIEW!
0 Kudos
Message 10 of 12
(4,384 Views)