ximgproc_RadonTransform
import { ximgproc_RadonTransform } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;srcThe source (input) image.
dstOutput destination, filled by the native operation. The destination image, result of transformation.
thetaAngle resolution of the transform in degrees.
start_angleStart angle of the transform in degrees.
end_angleEnd angle of the transform in degrees.
cropCrop the source image into a circle.
normNormalize 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.