Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions Examples/DataRepresentation/Image/Image1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ int main(int, char *[])
// Then we must decide with what type to represent the pixels
// and what the dimension of the image will be. With these two
// parameters we can instantiate the image class. Here we create
// a 3D image with \code{unsigned short} pixel data.
// a 3D image with \code{uint16_t} pixel data.
//
// Software Guide : EndLatex
//
// Software Guide : BeginCodeSnippet
typedef itk::Image< unsigned short, 3 > ImageType;
typedef itk::Image< uint16_t, 3 > ImageType;
// Software Guide : EndCodeSnippet


Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Image/Image2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int main( int , char * argv[])
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef unsigned char PixelType;
typedef uint8_t PixelType;
const unsigned int Dimension = 3;

typedef itk::Image< PixelType, Dimension > ImageType;
Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Image/Image3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
int main(int, char *[])
{
// First the image type should be declared
typedef itk::Image< unsigned short, 3 > ImageType;
typedef itk::Image< uint16_t, 3 > ImageType;

// Then the image object can be created
ImageType::Pointer image = ImageType::New();
Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Image/Image4.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

int main(int, char *[])
{
typedef itk::Image< unsigned short, 3 > ImageType;
typedef itk::Image< uint16_t, 3 > ImageType;

ImageType::Pointer image = ImageType::New();

Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Image/Image5.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
//
// Software Guide : BeginCodeSnippet
typedef unsigned char PixelType;
typedef uint8_t PixelType;
const unsigned int Dimension = 3;
typedef itk::Image< PixelType, Dimension > ImageType;
// Software Guide : EndCodeSnippet
Expand Down
8 changes: 4 additions & 4 deletions Examples/DataRepresentation/Image/ImageAdaptor1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//
//This example illustrates how the \doxygen{ImageAdaptor} can be used to cast
// an image from one pixel type to another. In particular, we will
// \emph{adapt} an \code{unsigned char} image to make it appear as an image of
// \emph{adapt} an \code{uint8_t} image to make it appear as an image of
// pixel type \code{float}.
//
// \index{itk::ImageAdaptor!Instantiation}
Expand Down Expand Up @@ -48,7 +48,7 @@
// provide methods \code{Set()} and \code{Get()}, and define the types of
// \code{InternalPixelType} and \code{ExternalPixelType}. The
// \code{InternalPixelType} corresponds to the pixel type of the image to be
// adapted (\code{unsigned char} in this example). The \code{ExternalPixelType}
// adapted (\code{uint8_t} in this example). The \code{ExternalPixelType}
// corresponds to the pixel type we wish to emulate with the ImageAdaptor
// (\code{float} in this case).
//
Expand All @@ -59,7 +59,7 @@
class CastPixelAccessor
{
public:
typedef unsigned char InternalType;
typedef uint8_t InternalType;
typedef float ExternalType;

static void Set(InternalType & output, const ExternalType & input)
Expand Down Expand Up @@ -102,7 +102,7 @@ int main( int argc, char *argv[] )


// Software Guide : BeginCodeSnippet
typedef unsigned char InputPixelType;
typedef uint8_t InputPixelType;
const unsigned int Dimension = 2;
typedef itk::Image< InputPixelType, Dimension > ImageType;

Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Image/ImageAdaptor2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ int main( int argc, char *argv[] )


// Software Guide : BeginCodeSnippet
typedef itk::Image< unsigned char, Dimension > OutputImageType;
typedef itk::Image< uint8_t, Dimension > OutputImageType;
typedef itk::RescaleIntensityImageFilter< ImageAdaptorType,
OutputImageType
> RescalerType;
Expand Down
4 changes: 2 additions & 2 deletions Examples/DataRepresentation/Image/ImageAdaptor3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int main( int argc, char *argv[] )


// Software Guide : BeginCodeSnippet
typedef unsigned char InputPixelType;
typedef uint8_t InputPixelType;
const unsigned int Dimension = 2;
typedef itk::Image< InputPixelType, Dimension > InputImageType;
typedef itk::CovariantVector< float, Dimension > VectorPixelType;
Expand Down Expand Up @@ -205,7 +205,7 @@ int main( int argc, char *argv[] )
// Software Guide : EndCodeSnippet


typedef itk::Image< unsigned char, Dimension > OutputImageType;
typedef itk::Image< uint8_t, Dimension > OutputImageType;
typedef itk::RescaleIntensityImageFilter< ImageAdaptorType, OutputImageType>
RescalerType;
RescalerType::Pointer rescaler = RescalerType::New();
Expand Down
4 changes: 2 additions & 2 deletions Examples/DataRepresentation/Image/ImageAdaptor4.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
class ThresholdingPixelAccessor
{
public:
typedef unsigned char InternalType;
typedef unsigned char ExternalType;
typedef uint8_t InternalType;
typedef uint8_t ExternalType;

ThresholdingPixelAccessor() : m_Threshold(0) {};

Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Image/RGBImage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int main( int , char * argv[] )
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef itk::RGBPixel< unsigned char > PixelType;
typedef itk::RGBPixel< uint8_t > PixelType;
// Software Guide : EndCodeSnippet


Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Mesh/ImageToPointSet.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int main( int argc, char * argv[] )
}


typedef unsigned char PixelType;
typedef uint8_t PixelType;
const unsigned int Dimension = 2;

typedef itk::Image< PixelType, Dimension > ImageType;
Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Mesh/PointSet1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int main(int, char *[])
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef itk::PointSet< unsigned short, 3 > PointSetType;
typedef itk::PointSet< uint16_t, 3 > PointSetType;
// Software Guide : EndCodeSnippet


Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Mesh/PointSet2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

int main(int, char *[])
{
typedef itk::PointSet< unsigned short, 3 > PointSetType;
typedef itk::PointSet< uint16_t, 3 > PointSetType;

// Software Guide : BeginLatex
//
Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Mesh/PointSet3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ int main(int, char *[])
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef unsigned short PixelType;
typedef uint16_t PixelType;
typedef itk::PointSet< PixelType, 3 > PointSetType;
// Software Guide : EndCodeSnippet

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main(int argc, char * argv [] )
// Software Guide : BeginCodeSnippet
const unsigned int Dimension = 2;

typedef itk::Image< unsigned char, Dimension > ImageType;
typedef itk::Image< uint8_t, Dimension > ImageType;

typedef itk::PolyLineParametricPath< Dimension > PathType;
// Software Guide : EndCodeSnippet
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/AntiAliasBinaryImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int main(int argc, char* argv[])
}


typedef unsigned char CharPixelType; // IO
typedef uint8_t CharPixelType; // IO
typedef double RealPixelType; // Operations
const unsigned int Dimension = 3;

Expand Down
6 changes: 3 additions & 3 deletions Examples/Filtering/BilateralImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ int main( int argc, char * argv[] )
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef unsigned char InputPixelType;
typedef unsigned char OutputPixelType;
typedef uint8_t InputPixelType;
typedef uint8_t OutputPixelType;

typedef itk::Image< InputPixelType, 2 > InputImageType;
typedef itk::Image< OutputPixelType, 2 > OutputImageType;
Expand Down Expand Up @@ -216,7 +216,7 @@ int main( int argc, char * argv[] )
//
// Software Guide : EndLatex

typedef unsigned char WritePixelType;
typedef uint8_t WritePixelType;
typedef itk::Image< WritePixelType, 2 > WriteImageType;
typedef itk::RescaleIntensityImageFilter<
OutputImageType, WriteImageType > RescaleFilterType;
Expand Down
4 changes: 2 additions & 2 deletions Examples/Filtering/BinaryMedianImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ int main( int argc, char * argv[] )
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef unsigned char InputPixelType;
typedef unsigned char OutputPixelType;
typedef uint8_t InputPixelType;
typedef uint8_t OutputPixelType;

typedef itk::Image< InputPixelType, 2 > InputImageType;
typedef itk::Image< OutputPixelType, 2 > OutputImageType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ int main( int argc, char * argv[] )
//
// Software Guide : EndLatex

typedef unsigned char WritePixelType;
typedef uint8_t WritePixelType;

typedef itk::Image< WritePixelType, 2 > WriteImageType;

Expand Down
4 changes: 2 additions & 2 deletions Examples/Filtering/BinaryThresholdImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ int main( int argc, char * argv[] )
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef unsigned char InputPixelType;
typedef unsigned char OutputPixelType;
typedef uint8_t InputPixelType;
typedef uint8_t OutputPixelType;
// Software Guide : EndCodeSnippet


Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/BinomialBlurImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ int main( int argc, char * argv[] )

// This section connects the filter output to a writer
//
typedef unsigned char WritePixelType;
typedef uint8_t WritePixelType;
typedef itk::Image< WritePixelType, 2 > WriteImageType;
typedef itk::RescaleIntensityImageFilter<
OutputImageType, WriteImageType > RescaleFilterType;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/CannyEdgeDetectionImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ int main(int argc, char* argv[])
std::cout << "UpperThreshold = " << upperThreshold << std::endl;
std::cout << "LowerThreshold = " << lowerThreshold << std::endl;

typedef unsigned char CharPixelType; // IO
typedef uint8_t CharPixelType; // IO
typedef double RealPixelType; // Operations
const unsigned int Dimension = 2;

Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/CastingImageFilters.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ int main( int argc, char * argv[] )
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef unsigned char InputPixelType;
typedef uint8_t InputPixelType;
typedef float OutputPixelType;
// Software Guide : EndCodeSnippet

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main( int argc, char * argv[] )
// after the curvature flow filter.
//

typedef unsigned char WritePixelType;
typedef uint8_t WritePixelType;
typedef itk::Image< WritePixelType, 2 > WriteImageType;
typedef itk::RescaleIntensityImageFilter<
OutputImageType, WriteImageType > RescaleFilterType;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/CurvatureFlowImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ int main( int argc, char * argv[] )
//
// Software Guide : EndLatex

typedef unsigned char WritePixelType;
typedef uint8_t WritePixelType;

typedef itk::Image< WritePixelType, 2 > WriteImageType;

Expand Down
4 changes: 2 additions & 2 deletions Examples/Filtering/DanielssonDistanceMapImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ int main( int argc, char * argv[] )
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef unsigned char InputPixelType;
typedef unsigned short OutputPixelType;
typedef uint8_t InputPixelType;
typedef uint16_t OutputPixelType;
typedef itk::Image< InputPixelType, 2 > InputImageType;
typedef itk::Image< OutputPixelType, 2 > OutputImageType;
// Software Guide : EndCodeSnippet
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/DerivativeImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ int main( int argc, char * argv[] )
// Software Guide : EndLatex


typedef itk::Image< unsigned char, Dimension > WriteImageType;
typedef itk::Image< uint8_t, Dimension > WriteImageType;

typedef itk::RescaleIntensityImageFilter<
OutputImageType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ int main( int argc, char *argv[] )
bool readb0 = false;
double b0 = 0;

typedef unsigned short PixelType;
typedef itk::VectorImage<unsigned short, 3> ImageType;
typedef uint16_t PixelType;
typedef itk::VectorImage<uint16_t, 3> ImageType;

itk::ImageFileReader<ImageType>::Pointer reader
= itk::ImageFileReader<ImageType>::New();
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/DigitallyReconstructedRadiograph1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ int main( int argc, char *argv[] )
// Software Guide : BeginCodeSnippet
const unsigned int Dimension = 3;
typedef short InputPixelType;
typedef unsigned char OutputPixelType;
typedef uint8_t OutputPixelType;

typedef itk::Image< InputPixelType, Dimension > InputImageType;
typedef itk::Image< OutputPixelType, Dimension > OutputImageType;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/DiscreteGaussianImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ int main( int argc, char * argv[] )
//
// Software Guide : EndLatex

typedef unsigned char WritePixelType;
typedef uint8_t WritePixelType;
typedef itk::Image< WritePixelType, 2 > WriteImageType;
typedef itk::RescaleIntensityImageFilter<
OutputImageType, WriteImageType > RescaleFilterType;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/FFTDirectInverse.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main( int argc, char * argv[] )

// Software Guide : BeginCodeSnippet
const unsigned int Dimension = 2;
typedef unsigned short IOPixelType;
typedef uint16_t IOPixelType;
typedef float WorkPixelType;

typedef itk::Image< IOPixelType, Dimension > IOImageType;
Expand Down
4 changes: 2 additions & 2 deletions Examples/Filtering/FFTDirectInverse2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ int main( int argc, char * argv[] )

// Software Guide : BeginCodeSnippet
const unsigned int Dimension = 2;
// typedef unsigned char OutputPixelType;
typedef unsigned short OutputPixelType;
// typedef uint8_t OutputPixelType;
typedef uint16_t OutputPixelType;
typedef float WorkPixelType;

typedef itk::Image< WorkPixelType, Dimension > InputImageType;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/FFTImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ int main( int argc, char * argv [] )
// Software Guide : EndCodeSnippet


typedef unsigned char WritePixelType;
typedef uint8_t WritePixelType;
typedef itk::Image< WritePixelType, Dimension > WriteImageType;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int main( int argc, char * argv [] )
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef unsigned char MaskPixelType;
typedef uint8_t MaskPixelType;

typedef itk::Image< MaskPixelType, Dimension > MaskImageType;
// Software Guide : EndCodeSnippet
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/FlipImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ int main( int argc, char * argv[] )
// Software Guide : EndLatex

// Software Guide : BeginCodeSnippet
typedef unsigned char PixelType;
typedef uint8_t PixelType;

typedef itk::Image< PixelType, 2 > ImageType;
// Software Guide : EndCodeSnippet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ int main( int argc, char * argv[] )
//
// The output of the filter is rescaled here and then sent to a writer.
//
typedef unsigned char WritePixelType;
typedef uint8_t WritePixelType;
typedef itk::Image< WritePixelType, 2 > WriteImageType;
typedef itk::RescaleIntensityImageFilter<
OutputImageType, WriteImageType > RescaleFilterType;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/GradientMagnitudeImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ int main( int argc, char * argv[] )
//
// Software Guide : EndLatex

typedef unsigned char WritePixelType;
typedef uint8_t WritePixelType;
typedef itk::Image< WritePixelType, 2 > WriteImageType;
typedef itk::RescaleIntensityImageFilter<
OutputImageType, WriteImageType > RescaleFilterType;
Expand Down
Loading