|
10 | 10 |
|
11 | 11 | namespace cv { namespace ximgproc {
|
12 | 12 | /**
|
13 |
| -* @brief Calculate Radon Transform of an image. |
14 |
| -* @param src The source (input) image. |
15 |
| -* @param dst The destination image, result of transformation. |
16 |
| -* @param theta Angle resolution of the transform in degrees. |
17 |
| -* @param start_angle Start angle of the transform in degrees. |
18 |
| -* @param end_angle End angle of the transform in degrees. |
19 |
| -* @param crop Crop the source image into a circle. |
20 |
| -* @param norm Normalize the output Mat to grayscale and convert type to CV_8U |
21 |
| -* |
22 |
| -* This function calculates the Radon Transform of a given image in any range. |
23 |
| -* See https://engineering.purdue.edu/~malcolm/pct/CTI_Ch03.pdf for detail. |
24 |
| -* If the input type is CV_8U, the output will be CV_32S. |
25 |
| -* If the input type is CV_32F or CV_64F, the output will be CV_64F |
26 |
| -* The output size will be num_of_integral x src_diagonal_length. |
27 |
| -* If crop is selected, the input image will be crop into square then circle, |
28 |
| -* and output size will be num_of_integral x min_edge. |
29 |
| -* |
30 |
| -*/ |
| 13 | + * @brief Computes the Radon transform of a given 2D image. |
| 14 | + * |
| 15 | + * The Radon transform is often used in image processing, particularly in applications |
| 16 | + * like computed tomography, to analyze the structure of an image. |
| 17 | + * |
| 18 | + * @param src The input image on which the Radon transform is to be applied. |
| 19 | + * Must be a 2D single-channel array (e.g., grayscale image). |
| 20 | + * @param dst The output array that will hold the result of the Radon transform. |
| 21 | + * @param theta The angle increment in degrees for the projection. |
| 22 | + * @param start_angle The starting angle for the Radon transform in degrees. |
| 23 | + * @param end_angle The ending angle for the Radon transform in degrees. |
| 24 | + * The difference between end_angle and start_angle must be positive when multiplied by theta. |
| 25 | + * @param crop A flag indicating whether to crop the input image to a square or circular shape before transformation. |
| 26 | + * @param norm A flag indicating whether to normalize the output image to the range [0, 255] after computation. |
| 27 | + */ |
31 | 28 | CV_EXPORTS_W void RadonTransform(InputArray src,
|
32 | 29 | OutputArray dst,
|
33 | 30 | double theta = 1,
|
|
0 commit comments