Table of Contents

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

src InputArray

The source (input) image.

dst OutputArray

The destination image, result of transformation.

theta double

Angle resolution of the transform in degrees.

startAngle double

Start angle of the transform in degrees.

endAngle double

End angle of the transform in degrees.

crop bool

Crop the source image into a circle.

norm bool

Normalize 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.