<commit_before>/*=========================================================================

  Program:   ORFEO Toolbox
  Language:  C++
  Date:      $Date$
  Version:   $Revision$


  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
  See OTBCopyright.txt for details.

  Some parts of this code are derived from ITK. See ITKCopyright.txt
  for details.


     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#include <iostream>
#include <sstream>

#include "itkRescaleIntensityImageFilter.h"
#include "itkVectorIndexSelectionCastImageFilter.h"

#include "otbImageToVectorImageCastFilter.h"
#include "otbImageList.h"
#include "otbImage.h"
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingHistogramVectorImageFilter.h"
#include "otbStreamingMinMaxVectorImageFilter.h"
#include "otbGlobalHistogramEqualizationFilter.h"
#include "otbVectorImageColorSpaceTransformFilter.h"
#include "otbImageFileWriter.h"
#include "otbImageListToVectorImageFilter.h"
#include "otbRGBToYUVFunctor.h"
#include "otbYUVToRGBFunctor.h"

#include "otbWrapperApplication.h"
#include "otbWrapperApplicationFactory.h"

namespace otb
{
namespace Wrapper
{
class ColorHistogramEqualize : public Application
{
public:

  typedef ColorHistogramEqualize Self;
  typedef Application Superclass;
  typedef itk::SmartPointer<Self> Pointer;
  typedef itk::SmartPointer<const Self> ConstPointer;

  itkNewMacro(Self);

  itkTypeMacro(Self, otb::Application);

  typedef unsigned int PixelType;
  // typedef unsigned int OutputPixelType;

  typedef otb::Image<PixelType, 2>  ImageType;
  typedef otb::VectorImage<PixelType, 2>   VectorType;
  typedef otb::VectorImage<float, 2>   FloatVectorType;
  typedef FloatVectorType::PixelType FloatVectorPixelType;
  typedef VectorType::PixelType VectorPixelType;
  typedef otb::Image<float, 2>  FloatImageType;

  typedef otb::StreamingMinMaxVectorImageFilter<VectorType> StreamingMinMaxFilterType;
  typedef itk::VariableLengthVector<PixelType> MinMaxPixelType;

  typedef otb::StreamingHistogramVectorImageFilter<VectorType> HistogramFilterType;
  typedef typename itk::NumericTraits< float >::RealType MeasurementType;
  typedef itk::Statistics::Histogram< MeasurementType, 1 > HistogramType;
  typedef otb::ObjectList< HistogramType > HistogramListType;
  typedef otb::GlobalHistogramEqualizationFilter<ImageType, FloatImageType> HistogramEqualizationFilterType;

  typedef otb::Functor::RGBToYUVFunctor<VectorPixelType,FloatVectorPixelType> YUVFunctorType;
  typedef otb::VectorImageColorSpaceTransformFilter<VectorType, FloatVectorType, YUVFunctorType> YUVFilterType;
  typedef itk::VectorIndexSelectionCastImageFilter<FloatVectorType, FloatImageType> VectorCastFilterType;
  typedef itk::RescaleIntensityImageFilter<FloatImageType, ImageType> FloatRescalerType;<commit_msg>COMP: do not use typename outside template class<commit_after>/*=========================================================================

  Program:   ORFEO Toolbox
  Language:  C++
  Date:      $Date$
  Version:   $Revision$


  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
  See OTBCopyright.txt for details.

  Some parts of this code are derived from ITK. See ITKCopyright.txt
  for details.


     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#include <iostream>
#include <sstream>

#include "itkRescaleIntensityImageFilter.h"
#include "itkVectorIndexSelectionCastImageFilter.h"

#include "otbImageToVectorImageCastFilter.h"
#include "otbImageList.h"
#include "otbImage.h"
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingHistogramVectorImageFilter.h"
#include "otbStreamingMinMaxVectorImageFilter.h"
#include "otbGlobalHistogramEqualizationFilter.h"
#include "otbVectorImageColorSpaceTransformFilter.h"
#include "otbImageFileWriter.h"
#include "otbImageListToVectorImageFilter.h"
#include "otbRGBToYUVFunctor.h"
#include "otbYUVToRGBFunctor.h"

#include "otbWrapperApplication.h"
#include "otbWrapperApplicationFactory.h"

namespace otb
{
namespace Wrapper
{
class ColorHistogramEqualize : public Application
{
public:

  typedef ColorHistogramEqualize Self;
  typedef Application Superclass;
  typedef itk::SmartPointer<Self> Pointer;
  typedef itk::SmartPointer<const Self> ConstPointer;

  itkNewMacro(Self);

  itkTypeMacro(Self, otb::Application);

  typedef unsigned int PixelType;
  // typedef unsigned int OutputPixelType;

  typedef otb::Image<PixelType, 2>  ImageType;
  typedef otb::VectorImage<PixelType, 2>   VectorType;
  typedef otb::VectorImage<float, 2>   FloatVectorType;
  typedef FloatVectorType::PixelType FloatVectorPixelType;
  typedef VectorType::PixelType VectorPixelType;
  typedef otb::Image<float, 2>  FloatImageType;

  typedef otb::StreamingMinMaxVectorImageFilter<VectorType> StreamingMinMaxFilterType;
  typedef itk::VariableLengthVector<PixelType> MinMaxPixelType;

  typedef otb::StreamingHistogramVectorImageFilter<VectorType> HistogramFilterType;
  typedef itk::NumericTraits< float >::RealType MeasurementType;
  typedef itk::Statistics::Histogram< MeasurementType, 1 > HistogramType;
  typedef otb::ObjectList< HistogramType > HistogramListType;
  typedef otb::GlobalHistogramEqualizationFilter<ImageType, FloatImageType> HistogramEqualizationFilterType;

  typedef otb::Functor::RGBToYUVFunctor<VectorPixelType,FloatVectorPixelType> YUVFunctorType;
  typedef otb::VectorImageColorSpaceTransformFilter<VectorType, FloatVectorType, YUVFunctorType> YUVFilterType;
  typedef itk::VectorIndexSelectionCastImageFilter<FloatVectorType, FloatImageType> VectorCastFilterType;
  typedef itk::RescaleIntensityImageFilter<FloatImageType, ImageType> FloatRescalerType;
{'fraction_non_alphanumeric': 0.1226904376012966, 'fraction_numerical': 0.0016207455429497568, 'mean_word_length': 7.606694560669456, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '936097', 'n_tokens_mistral': 1820, 'n_tokens_neox': 1738, 'n_words': 407}