Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

filter images from ring acquisition

Hi,

 

I am using NI PXI 1409 card for analog frame grabber and CCD camera. And I just started teaching myself filters.

When I snap an image from the camera with PXI 1409 on RT level and apply low pass(smoothing) filter and convolution, it works fine.

But when I use the same filters in the same way above with images from ring acquisition, it does not work, giving me an error.

So, if there is a way to do that, please let me know.

 

I am just a beginner, so any help with a little bit of details would be very appreciated.

Thank you, in advance.

 

JY 

0 Kudos
Message 1 of 10
(5,001 Views)

Hi,

 

Could you please tell us what error you are getting?  That would be most helpful. 

 

Cheers, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 2 of 10
(4,985 Views)

Hi,

 

The error is as follow.

 

Error - 1074396065 occurred at an unidentified location

Possible reason(s):

IMAQ Vision: (Hex 0xBFF6045F) Cannot resize an image in an acquisition buffer.

 

Thank you.

 

JY 

0 Kudos
Message 3 of 10
(4,981 Views)

Hi JY,

 

Are you trying to change the size of an image while acquiring?  Have you tried creating a new image buffer for whatever operation you are doing?  When does the error happen?

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 4 of 10
(4,956 Views)

Hi,

 

I think that actually the filter changes the size of the image.

And yes I tried creating a new image buffer before and it actually solved the error,

but it also made the frame rate slower from 30 to 15. And now I am wondering what causes this problem.

Or I am wonder if there is a better way to solve this error without affecting the frame rate.

Thank you.

 

JY

 

0 Kudos
Message 5 of 10
(4,951 Views)

For that new image buffer, I would ensure that you only do this once, outside the loop, and then feed the reference to the filter VI.  If you are creating a new buffer in the loop each time, I wouldn't be surprised if this is doubling your frames per second.

 

 

 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 6 of 10
(4,939 Views)

Hi The Chancenator,

 

Thank you for your comment. But I've just tried to create the buffer outside of the loop and feed the reference to the filter VI, and it still reduces the frame rate by half. Is there another way??

 

Thanks,

 

JY 

0 Kudos
Message 7 of 10
(4,932 Views)

Hi,

 

Could you post the portion of your code that exhibits this behavior?

 

Thanks, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 8 of 10
(4,896 Views)

Hi JY,

 

Would you be able to explain how you created a new buffer to fix your 1074396065 error?  I am having the same problem but am not sure where to look.  My problem started because I put an older VI created for Labview 7 and tried to use 2009...this changed some of the subvi's and then I got this error with IMAQ copy.  I replaced IMAQ copy with IMAQ copy acquired buffer and still got the same error.  If you have any images of your vi before and after it would be great to see how you fixed it.

 

Thanks,

 

Calista 

0 Kudos
Message 9 of 10
(4,891 Views)

Hi Calista, 

 

Ensure that you are using two IMAQ Create VI's, and the title for each is unique; i.e., don't use "untitled" for both buffers.  

 

Cheers, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 10 of 10
(4,873 Views)