Skip to content

Commit

Permalink
Update radon_transform.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sturkmen72 authored Oct 22, 2024
1 parent 2f9d0a6 commit 12760fe
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions modules/ximgproc/include/opencv2/ximgproc/radon_transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,21 @@

namespace cv { namespace ximgproc {
/**
* @brief Calculate Radon Transform of an image.
* @param src The source (input) image.
* @param dst The destination image, result of transformation.
* @param theta Angle resolution of the transform in degrees.
* @param start_angle Start angle of the transform in degrees.
* @param end_angle End angle of the transform in degrees.
* @param crop Crop the source image into a circle.
* @param 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.
*
*/
* @brief Computes the Radon transform of a given 2D image.
*
* The Radon transform is often used in image processing, particularly in applications
* like computed tomography, to analyze the structure of an image.
*
* @param src The input image on which the Radon transform is to be applied.
* Must be a 2D single-channel array (e.g., grayscale image).
* @param dst The output array that will hold the result of the Radon transform.
* @param theta The angle increment in degrees for the projection.
* @param start_angle The starting angle for the Radon transform in degrees.
* @param end_angle The ending angle for the Radon transform in degrees.
* The difference between end_angle and start_angle must be positive when multiplied by theta.
* @param crop A flag indicating whether to crop the input image to a square or circular shape before transformation.
* @param norm A flag indicating whether to normalize the output image to the range [0, 255] after computation.
*/
CV_EXPORTS_W void RadonTransform(InputArray src,
OutputArray dst,
double theta = 1,
Expand Down

0 comments on commit 12760fe

Please sign in to comment.