How to grab images which have each different size

  • Hello,

    My name is Saito from LINX Corporation in Japan.

    We use ImageBufferMultiRoIDyn operator to crop defects. The cropped images fit defects size. It means each images size are different.

    In this case, we cannot get images with correct size on microDisplay. I'd like to know the method to get cropped images with microDisplay.

    If it is impossible, I'd like to have API example realize it.

    Do you know this?

  • Hi Saito

    Welcome to the VisualApplets forum!

    On a DMA transfer the width of each individual line is discarded. Only the frame data will be stored in the PC memory. By using FG_TRANSFER_LEN the number of byte of the transfer can be obtained. Any line length information is discarded.

    So information about the image dimensions have to be appended as a trailer to the image.

    Solution 1:

    In the post Extact ROIs from linescan images using a Blob Analysis images of different sizes are cropped using ImageBufferMultiRoIDyn operator. I think in this thread most of your question is answered.

    Solution 2:

    Instead of the presented solution above you can measure the current image width and height just before the DMA transfer.



    See the attached VA design.


    In microDisplay variable image dimensions cannot be displayed. Because microDisplay is a test only tool you could increase the size of each image with SyncToMax and SyncToMin to have a constant image size. However this is only for testing as it will require more DMA bandwidth:


    Let me know if you have further questions.