Library/ManagedCuda/NPP/NPPImage_8uC1.cs
/// <summary>
/// 1 channel 8-bit unsigned binarized (0, 255) source feature (canny edges, etc.) source image to list of lines in point polar format
/// representing the length (rho) and angle (theta) of each line from the origin of the normal to the line using the formula rho = x cos(theta) + y sin(theta).
/// The level of discretization, nDelta, is specified as an input parameter. The performance and effectiveness of this function highly depends on
/// this parameter with higher performance for larger numbers and more detailed results for lower numbers. nDelta must have the same values as
/// those used in the nppiFilterHoughLineGetBufferSize() function call.
/// </summary>
/// <param name="nDelta">Discretization steps, range 0.0F &lt; radial increment nDelta.rho &lt; 3.0F, 1.0F recommended, range 0.25F &lt; angular increment nDelta.theta &lt; 3.0F, 1.0F recommended.</param>
/// <param name="nThreshold">Minimum number of points to accept a line.</param>
/// <param name="pDeviceLines">Device pointer to (nMaxLineCount * sizeof(NppPointPolar) line objects.</param>
/// <param name="pDeviceLineCount">The number of lines detected by this function up to nMaxLineCount.</param>
/// <param name="pDeviceBuffer">pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiFilterHoughLineGetBufferSize() above)</param>
1 channel 8-bit unsigned binarized (0, 255) source feature (canny edges, etc.) source image to list of lines in point polar format
representing the length (rho) and angle (theta) of each line from the origin of the normal to the line using the formula rho = x cos(theta) + y sin(theta).
The level of discretization, nDelta, is specified as an input parameter. The performance and effectiveness of this function highly depends on
this parameter with higher performance for larger numbers and more detailed results for lower numbers. nDelta must have the same values as
those used in the nppiFilterHoughLineGetBufferSize() function call.
1 channel 8 - bit unsigned binarized ( 0 255 ) source feature ( canny edges etc . ) source image to list of lines in point polar format representing the length ( rho ) and angle ( theta ) of each line from the origin of the normal to the line using the formula rho = x cos ( theta ) + y sin ( theta ) . The level of discretization nDelta is specified as an input parameter . The performance and effectiveness of this function highly depends on this parameter with higher performance for larger numbers and more detailed results for lower numbers . nDelta must have the same values as those used in the nppiFilterHoughLineGetBufferSize () function call .
public void FilterHoughLine(NppPointPolar nDelta, int nThreshold, CudaDeviceVariable<NppPointPolar> pDeviceLines, CudaDeviceVariable<int> pDeviceLineCount, CudaDeviceVariable<byte> pDeviceBuffer)
        {
            status = NPPNativeMethods.NPPi.FilterHoughLine.nppiFilterHoughLine_8u32f_C1R(_devPtr, _pitch, _sizeRoi, nDelta, nThreshold, pDeviceLines.DevicePointer, pDeviceLines.Size, pDeviceLineCount.DevicePointer, pDeviceBuffer.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterHoughLine_8u32f_C1R", status));
            NPPException.CheckNppStatus(status, this);
        }
public void FilterHoughLine ( NppPointPolar nDelta , int nThreshold , CudaDeviceVariable < NppPointPolar > pDeviceLines , CudaDeviceVariable < int > pDeviceLineCount , CudaDeviceVariable < byte > pDeviceBuffer ) { status = NPPNativeMethods . NPPi . FilterHoughLine . nppiFilterHoughLine_8u32f_C1R ( _devPtr , _pitch , _sizeRoi , nDelta , nThreshold , pDeviceLines . DevicePointer , pDeviceLines . Size , pDeviceLineCount . DevicePointer , pDeviceBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
1 channel 8-bit unsigned binarized (0, 255) source feature (canny edges, etc.)
1 channel 8 - bit unsigned binarized ( 0 255 ) source feature ( canny edges etc . )
nDelta
NppPointPolar
Discretization steps, range 0.0F < radial increment nDelta.rho < 3.0F, 1.0F recommended, range 0.25F < angular increment nDelta.theta < 3.0F, 1.0F recommended.
Discretization steps range 0 . 0F < radial increment nDelta . rho < 3 . 0F 1 . 0F recommended range 0 . 25F < angular increment nDelta . theta < 3 . 0F 1 . 0F recommended .
nThreshold
int
Minimum number of points to accept a line.
Minimum number of points to accept a line .
pDeviceLines
CudaDeviceVariable<NppPointPolar>
Device pointer to (nMaxLineCount * sizeof(NppPointPolar) line objects.
Device pointer to ( nMaxLineCount * sizeof ( NppPointPolar ) line objects .
pDeviceLineCount
CudaDeviceVariable<int>
The number of lines detected by this function up to nMaxLineCount.
The number of lines detected by this function up to nMaxLineCount .
pDeviceBuffer
CudaDeviceVariable<byte>
pointer to scratch DEVICE memory buffer of size hpBufferSize  above)
pointer to scratch DEVICE memory buffer of size hpBufferSize above )