03-27-2014 11:49 AM
Hi,
I'm using a Basler acA2000 340kc controled through a PCIe 1473R FPGA. I am obtaining succesful images. I'd like now to be able to select n ROI from the image and show the FFT of this ROI.
I have then two questions, as I have no previous experince in doing this.
1) How do I extract the ROI from the image? I'd like to select a ROI from the image and display it.
2) How do I perform the FFT from the selected ROI?
Thanks a lot for your help,
Rafa
03-28-2014 01:46 AM
Hello,
you can use ROI property node to extract the subimage and perfrom FFT on the subimage.
A basic example:
Just remember that using the IMAQ FFT, the high frequencies are in the center (you can flip them if it suits you better).
Best regards,
K
03-28-2014 02:54 PM
Thanks a lot! That seems really useful.
It seems though that some VI in that code require NI VIsion Development Module, is this right?
Is this module separated from the LabView basic module. We have some VIs related with the ROI, but not all of them.
Is it essential to have this module in order to do what we want to do??
Thanks for your help.
03-29-2014 08:10 AM - edited 03-29-2014 08:11 AM
Hello,
sorry I assumed you've got NI Vision. This would also work:
You can extract the ROI by using "array subset", prior to FFT.
Best regards,
K
03-31-2014 12:11 PM
Thanks a lot.
How is it called the last IMAQ VI? It seems to convert the complex number to image, but I cannot find it, and obviously the simple array to image does not work.
Thanks a lot,
Rafa
03-31-2014 12:21 PM
I found that it is array to complex image, but it turns out that I do not have such VI, I guess it's also in the image development module. Is that true?
http://zone.ni.com/reference/en-XX/help/370281M-01/imaqvision/imaq_arraytocompleximage/
Thanks for your help,
Rafa
03-31-2014 12:40 PM - edited 03-31-2014 12:44 PM
Hello,
yes you are right. Concentrate on the part inside the rectangle (the actual FFT) and ignore Vision vi's. They were just for visual verification. You don't need those if you don't have Vision.
How is the image data passed? How do you display the image?
Best regards,
K
03-31-2014 04:07 PM
Hi,
I have downloaded a trial version of the moduel in order to check if I'm interested in it.
I'm acquiring images through a Basler camera. I implemented your code for the FFT but no image is displayed (although a frame appears). I'm placing the code in the loop where the image is acquired. By probing the wires, I see that the image to array converter seems not to convert anything.
Any idea on this point?
thanks a lot
04-01-2014 12:35 AM - edited 04-01-2014 12:35 AM
Hello,
can you post a screenshot of your code? Only the relevant part.
Best regards,
K
04-01-2014 08:38 AM
Hey, thanks for your help.
I send you the part where the image is initiated and the loops that acquire the image. My frame grabber is an FPGA so I'm basically using the example 10Tap 8 bit Camera with DRAM.
tHANKS