Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMP: Change old enum to new enum class definitions #129

Merged
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Montage2D.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ int main( int argc, char *argv[] )
// but we examine what is the input type of the first tile and instantiate that

itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO(
(inputPath + stageTiles[0][0].FileName).c_str(), itk::ImageIOFactory::ReadMode );
(inputPath + stageTiles[0][0].FileName).c_str(), itk::ImageIOFactory::FileModeType::ReadMode );
imageIO->SetFileName( inputPath + stageTiles[0][0].FileName );
imageIO->ReadImageInformation();

Expand Down
2 changes: 1 addition & 1 deletion examples/RefineMontage2D.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ int main( int argc, char *argv[] )
try
{
itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO(
(inputPath + stageTiles[0][0].FileName).c_str(), itk::ImageIOFactory::ReadMode );
(inputPath + stageTiles[0][0].FileName).c_str(), itk::ImageIOFactory::FileModeType::ReadMode );
imageIO->SetFileName( inputPath + stageTiles[0][0].FileName );
imageIO->ReadImageInformation();

Expand Down
2 changes: 1 addition & 1 deletion examples/ResampleMontage2D.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ int main( int argc, char *argv[] )
try
{
itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO(
( inputPath + actualTiles[0][0].FileName ).c_str(), itk::ImageIOFactory::ReadMode );
( inputPath + actualTiles[0][0].FileName ).c_str(), itk::ImageIOFactory::FileModeType::ReadMode );
imageIO->SetFileName( inputPath + actualTiles[0][0].FileName );
imageIO->ReadImageInformation();

Expand Down
2 changes: 1 addition & 1 deletion test/itkInMemoryMontageTest2D.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ itkInMemoryMontageTest2D( int argc, char* argv[] )
itk::TileLayout2D stageTiles = itk::ParseTileConfiguration2D( inputPath + "TileConfiguration.registered.txt" );

itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO(
( inputPath + stageTiles[0][0].FileName ).c_str(), itk::ImageIOFactory::ReadMode );
( inputPath + stageTiles[0][0].FileName ).c_str(), itk::ImageIOFactory::FileModeType::ReadMode );
imageIO->SetFileName( inputPath + stageTiles[0][0].FileName );
imageIO->ReadImageInformation();
const itk::ImageIOBase::IOPixelType pixelType = imageIO->GetPixelType();
Expand Down
2 changes: 1 addition & 1 deletion test/itkMontagePCMTestFiles.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ int itkMontagePCMTestFiles( int argc, char* argv[] )
try
{
itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO(
argv[1], itk::ImageIOFactory::ReadMode);
argv[1], itk::ImageIOFactory::FileModeType::ReadMode);
imageIO->SetFileName( argv[1] );
imageIO->ReadImageInformation();
// const itk::ImageIOBase::IOComponentType pixelType = imageIO->GetComponentType();
Expand Down
2 changes: 1 addition & 1 deletion test/itkMontageTest2D.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int itkMontageTest2D(int argc, char* argv[])
itk::TileLayout2D actualTiles = itk::ParseTileConfiguration2D( inputPath + "TileConfiguration.registered.txt" );

itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO(
( inputPath + stageTiles[0][0].FileName ).c_str(), itk::ImageIOFactory::ReadMode );
( inputPath + stageTiles[0][0].FileName ).c_str(), itk::ImageIOFactory::FileModeType::ReadMode );
imageIO->SetFileName( inputPath + stageTiles[0][0].FileName );
imageIO->ReadImageInformation();
const itk::ImageIOBase::IOPixelType pixelType = imageIO->GetPixelType();
Expand Down
2 changes: 1 addition & 1 deletion test/itkMontageTruthCreator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ int itkMontageTruthCreator( int argc, char* argv[] )
return EXIT_FAILURE;
}

itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO( argv[1], itk::ImageIOFactory::ReadMode );
itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO( argv[1], itk::ImageIOFactory::FileModeType::ReadMode );
imageIO->SetFileName( argv[1] );
imageIO->ReadImageInformation();
unsigned dim = imageIO->GetNumberOfDimensions();
Expand Down