LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Resize Image in FPGA Target?

Hello:

 

I need to make some basic operation on image, but the data I get from NI 1477 camera link card is too large, is there some way I can resize the picture to say 1/4 or even 1/16 of raw size? so that I can make some measurement in smaller size data realtime.

 

For example, I need to measure the average brightness of a picture so that I can adjust the lighting condition as fast as I can. I would also want to make some simple measurements in lower resolution image, but I didn't find the right way to do it. Can somebody give me some advice?  Thanks!

0 Kudos
Message 1 of 3
(229 Views)

Let's say your image is 1024 x 1024, and you want 1/4 size, 512 x 512.  Do you want, say, just the upper-right quarter of the Image, or do you want a "lower resolution" version of the entire image?  Can your FPGA handle an additional quarter-size data area, or are you going to have to handle the transformation on the Real-Time target (the "Host" to the FPGA)?

 

Bob Schor 

0 Kudos
Message 2 of 3
(178 Views)

 

Thank you bob, that very nice of you take time and effort to help me.

 

I might have to do both of cropping and image resize in different part of my program.

As for down sampling, I found there is a LabVIEW build in function called extract image, which can sample one pixel in every n-th pixel. Not sure if it can serve all the amplitude information but worth a try.

 But for cropping image, I'm sure if there is a way to do so.

 

0 Kudos
Message 3 of 3
(130 Views)