Skip to content

ximgproc_RadonTransform

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_RadonTransform } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSsrc, dst, theta, start_angle
FUNCTIONximgproc_RadonTransform
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Calculate Radon Transform of an image.

ximgproc_RadonTransform(src: Mat, dst: Mat, theta: number, start_angle: number, end_angle: number, crop: boolean, norm: boolean): void;
6 available overloads
ximgproc_RadonTransform(src: Mat, dst: Mat): void;
ximgproc_RadonTransform(src: Mat, dst: Mat, theta: number): void;
ximgproc_RadonTransform(src: Mat, dst: Mat, theta: number, start_angle: number): void;
ximgproc_RadonTransform(src: Mat, dst: Mat, theta: number, start_angle: number, end_angle: number): void;
ximgproc_RadonTransform(src: Mat, dst: Mat, theta: number, start_angle: number, end_angle: number, crop: boolean): void;
ximgproc_RadonTransform(src: Mat, dst: Mat, theta: number, start_angle: number, end_angle: number, crop: boolean, norm: boolean): void;
src

The source (input) image.

dst

Output destination, filled by the native operation. The destination image, result of transformation.

theta

Angle resolution of the transform in degrees.

start_angle

Start angle of the transform in degrees.

end_angle

End angle of the transform in degrees.

crop

Crop the source image into a circle.

norm

Normalize the output Mat to grayscale and convert type to CV_8U

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 crop into square then circle, and output size will be num_of_integral x min_edge.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.