Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

DMIP graphs

Konstantinos_Filippa
529 Views

I am new at DMIP programming and I have a question about the way graphs work. I want to perform several thresholdings to an image using the MinVal function. I noticed that using the same graph in the code below for the second operation, the second operation does not work. After I added Release() to the graph before the second operation, then it works fine. Could anybody explain me why this happens?

Graph graph;

Image *iMag //e.g. the Sobel magnitude

graph = MinVal( *iMag, (Scalar)2, 4);

graph = MinVal( *iMag, (Scalar)-1, 4);

0 Kudos
1 Reply
SergeyKostrov
Valued Contributor II
529 Views

I am new at DMIP programming and I have a question about the way graphs work. I want to perform several thresholdings to an image using the MinVal function. I noticed that using the same graph in the code below for the second operation, the second operation does not work. After I added Release() to the graph before the second operation, then it works fine. Could anybody explain me why this happens?

Graph graph;

Image *iMag //e.g. the Sobel magnitude

graph = MinVal( *iMag, (Scalar)2, 4);

graph = MinVal( *iMag, (Scalar)-1, 4);


Reiteration: Unfortunately, it isnot answered andplease take a look.

0 Kudos
Reply