From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replacing a small portion of an image using IMAQ by using rectangle.

Solved!
Go to solution

Hi

 

I am new to LabVIEW and here is the scenario.

 

I have extracted a rectangle from the ORIGINAL image and performed some image processing on the image, and now I would like to replacing the processed portion on the ORIGINAL image. Can anyone give guidance on which block to be used?

 

Greatly appreciated. File attached is the snippet.

0 Kudos
Message 1 of 3
(933 Views)

Use Imaq image to array to get 2D data of our actual image and the same on your cropped image.

The use array replace subset and feed actual image in input and index the location to replace and feed the cropped image

Then use imaq array to image to get the updated image..

 

 

If your image is 32bit (color image) then you have to use IMAQ color image to array and imaq array to color image.

 

I don't have vision development module so I cannot share snippet or vi....


CLD Using LabVIEW since 2013
Message 2 of 3
(925 Views)
Solution
Accepted by topic author tanlin0904

Hi Kartik,

 

Greatly appreciated for your help and I spent some time on manipulating the 2D arrays 🙂

 

Here's the snippet just in case any LabVIEW user need this in the future.

 

PS: The part I highlighted as yellow can be ignored.

tanlin0904_0-1640248143900.png

 

0 Kudos
Message 3 of 3
(909 Views)