<commit_before>/*=========================================================================
 *
 *  Copyright Insight Software Consortium
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0.txt
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 *=========================================================================*/
#ifndef itkHoughTransform2DCirclesImageFilter_h
#define itkHoughTransform2DCirclesImageFilter_h


#include "itkImageToImageFilter.h"
#include "itkEllipseSpatialObject.h"

namespace itk
{
/**
 * \class HoughTransform2DCirclesImageFilter
 * \brief Performs the Hough Transform to find circles in a 2D image.
 *
 * This filter derives from the base class ImageToImageFilter.
 * The input is an image, and all pixels above some threshold are those
 * we want to consider during the process.
 *
 * This filter produces two output:
 *   1) The accumulator array, which represents probability of centers.
 *   2) The array or radii, which has the radius value at each coordinate point.
 *
 * When the filter finds a "correct" point, it computes the gradient at this
 * point and draws a regular narrow-banded circle using the minimum and maximum
 * radius given by the user, and fills in the array of radii.
 * The SweepAngle value can be adjusted to improve the segmentation.
 *
 * The filter will detect ring-shaped objects in the image, but it also finds discs.
 * For a disc to be found, the intensity values within the disc must be higher than
 * the surrounding of the disc.
 *
 * TOutputPixelType is the pixel type of the accumulator image. An unsigned integer
 * type (like 'unsigned long') is usually the best choice for this pixel type.
 *
 * TRadiusPixelType is the pixel type of the radius image. A floating point type
 * is recommended, as the estimation of the radius involves floating point
 * calculations. Usually, 'double' is the best choice for this pixel type.
 *
 * By default, TRadiusPixelType = TOutputPixelType, in order to preserve backward
 * compatibility with ITK <= 4.12.2.
 *
 * \ingroup ImageFeatureExtraction
 *
 * \ingroup ITKImageFeature
 *
 * \wiki
 * \wikiexample{Conversions/HoughTransform2DCirclesImageFilter,HoughTransform2DCirclesImageFilter}
 * \endwiki
 */

template< typename TInputPixelType, typename TOutputPixelType, typename TRadiusPixelType = TOutputPixelType  >
class ITK_TEMPLATE_EXPORT HoughTransform2DCirclesImageFilter:<commit_msg>DOC: Remove broken HoughTransform2DCircles wiki examples link<commit_after>/*=========================================================================
 *
 *  Copyright Insight Software Consortium
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0.txt
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 *=========================================================================*/
#ifndef itkHoughTransform2DCirclesImageFilter_h
#define itkHoughTransform2DCirclesImageFilter_h


#include "itkImageToImageFilter.h"
#include "itkEllipseSpatialObject.h"

namespace itk
{
/**
 * \class HoughTransform2DCirclesImageFilter
 * \brief Performs the Hough Transform to find circles in a 2D image.
 *
 * This filter derives from the base class ImageToImageFilter.
 * The input is an image, and all pixels above some threshold are those
 * we want to consider during the process.
 *
 * This filter produces two output:
 *   1) The accumulator array, which represents probability of centers.
 *   2) The array or radii, which has the radius value at each coordinate point.
 *
 * When the filter finds a "correct" point, it computes the gradient at this
 * point and draws a regular narrow-banded circle using the minimum and maximum
 * radius given by the user, and fills in the array of radii.
 * The SweepAngle value can be adjusted to improve the segmentation.
 *
 * The filter will detect ring-shaped objects in the image, but it also finds discs.
 * For a disc to be found, the intensity values within the disc must be higher than
 * the surrounding of the disc.
 *
 * TOutputPixelType is the pixel type of the accumulator image. An unsigned integer
 * type (like 'unsigned long') is usually the best choice for this pixel type.
 *
 * TRadiusPixelType is the pixel type of the radius image. A floating point type
 * is recommended, as the estimation of the radius involves floating point
 * calculations. Usually, 'double' is the best choice for this pixel type.
 *
 * By default, TRadiusPixelType = TOutputPixelType, in order to preserve backward
 * compatibility with ITK <= 4.12.2.
 *
 * \ingroup ImageFeatureExtraction
 *
 * \ingroup ITKImageFeature
 */

template< typename TInputPixelType, typename TOutputPixelType, typename TRadiusPixelType = TOutputPixelType  >
class ITK_TEMPLATE_EXPORT HoughTransform2DCirclesImageFilter:
{'fraction_non_alphanumeric': 0.10704822469528352, 'fraction_numerical': 0.005829358770535241, 'mean_word_length': 4.475822050290136, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4630074', 'n_tokens_mistral': 1476, 'n_tokens_neox': 1421, 'n_words': 674}