Method RadonTransform
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
RadonTransform(InputArray, OutputArray, double, double, double, bool, bool)
Calculate Radon Transform of an image.
public static void RadonTransform(InputArray src, OutputArray dst, double theta = 1, double startAngle = 0, double endAngle = 180, bool crop = false, bool norm = false)
Parameters
srcInputArrayThe source (input) image.
dstOutputArrayThe destination image, result of transformation.
thetadoubleAngle resolution of the transform in degrees.
startAngledoubleStart angle of the transform in degrees.
endAngledoubleEnd angle of the transform in degrees.
cropboolCrop the source image into a circle.
normboolNormalize the output Mat to grayscale and convert type to CV_8U.
Remarks
This function calculates the Radon Transform of a given image in any range. See https://engineering.purdue.edu/~malcolm/pct/CTI_Ch03.pdf for detail. If the input type is CV_8U, the output will be CV_32S. If the input type is CV_32F or CV_64F, the output will be CV_64F. The output size will be num_of_integral x src_diagonal_length. If crop is selected, the input image will be cropped into a square then a circle, and the output size will be num_of_integral x min_edge.