06-16-2010 10:22 AM
I am using NI Vision 2009 with VS2008. There appears to be about an 80kb memory leak when using the Algorithms.Rake function. It gets worse if I try to use it in a separate thread. Has anyone else discovered this?
My code:
Dim lineReport As New FitLineReportDim returnValue As Boolean = False
Dim roi As New RoiDim roiCenter As New PointContour(453.5, 240)
Dim roiRotatedRect As New RotatedRectangleContour(roiCenter, 321, 478, 0)roi.Add(roiRotatedRect)
'find straight edge
Dim rakeOptions As New EdgeOptionsWith rakeOptions
.ColumnProcessingMode = ColumnProcessingMode.Median
.InterpolationType = InterpolationMethod.Bilinear
.KernelSize = 37
.MinimumThreshold = 128
.Polarity = EdgePolaritySearchMode.Rising
.Width = 1
End With
Dim rakeReport As RakeReport = Algorithms.Rake(imgVwr.Image, roi, RakeDirection.RightToLeft, EdgeProcess.First, 13, rakeOptions)
06-17-2010 05:10 PM
Hello Steve,
There has been a similar report on this. Let me investigate this further for you.
06-17-2010 05:11 PM
06-18-2010 03:53 AM
Can you post the CAR#?
06-21-2010 02:14 PM
CAR#222280
The RD team is informed of this and there may be a fix in the future. The workaround for this is, since rake is looking for an edge, using SimpleEdge() instead. A way to improve execution time using Simple Edge() would be to increase the space between the Rake's.