Skip to content

Commit

Permalink
COMP: follow rename of ImageIOFactory FileModeType into FileModeEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Dec 14, 2019
1 parent 62ed241 commit 952c6ce
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/CompleteMontage.cxx
Expand Up @@ -563,7 +563,7 @@ mainHelper(int argc, char * argv[], std::string inputPath)

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

Expand Down
2 changes: 1 addition & 1 deletion examples/RefineMontage.cxx
Expand Up @@ -95,7 +95,7 @@ mainHelper(std::string inputPath, std::string inFile, std::string outFile)

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

Expand Down
2 changes: 1 addition & 1 deletion examples/ResampleMontage.cxx
Expand Up @@ -125,7 +125,7 @@ mainHelper(char * argv[])

std::string firstFilename = inputPath + actualTiles.Tiles[0].FileName;
itk::ImageIOBase::Pointer imageIO =
itk::ImageIOFactory::CreateImageIO(firstFilename.c_str(), itk::ImageIOFactory::FileModeType::ReadMode);
itk::ImageIOFactory::CreateImageIO(firstFilename.c_str(), itk::ImageIOFactory::FileModeEnum::ReadMode);
imageIO->SetFileName(firstFilename);
imageIO->ReadImageInformation();

Expand Down
2 changes: 1 addition & 1 deletion test/itkInMemoryMontageTest2D.cxx
Expand Up @@ -46,7 +46,7 @@ itkInMemoryMontageTest2D(int argc, char * argv[])
stageTiles.Parse(inputPath + "TileConfiguration.registered.txt");

itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO(
(inputPath + stageTiles.Tiles[0].FileName).c_str(), itk::ImageIOFactory::FileModeType::ReadMode);
(inputPath + stageTiles.Tiles[0].FileName).c_str(), itk::ImageIOFactory::FileModeEnum::ReadMode);
imageIO->SetFileName(inputPath + stageTiles.Tiles[0].FileName);
imageIO->ReadImageInformation();
const itk::ImageIOBase::IOPixelType pixelType = imageIO->GetPixelType();
Expand Down
2 changes: 1 addition & 1 deletion test/itkMontagePCMTestFiles.cxx
Expand Up @@ -158,7 +158,7 @@ itkMontagePCMTestFiles(int argc, char * argv[])
try
{
itk::ImageIOBase::Pointer imageIO =
itk::ImageIOFactory::CreateImageIO(argv[1], itk::ImageIOFactory::FileModeType::ReadMode);
itk::ImageIOFactory::CreateImageIO(argv[1], itk::ImageIOFactory::FileModeEnum::ReadMode);
imageIO->SetFileName(argv[1]);
imageIO->ReadImageInformation();
// const itk::ImageIOBase::IOComponentType pixelType = imageIO->GetComponentType();
Expand Down
2 changes: 1 addition & 1 deletion test/itkMontageTest.cxx
Expand Up @@ -111,7 +111,7 @@ itkMontageTestHelper(int argc, char * argv[], const std::string & inputPath)
actualTiles.Parse(inputPath + "TileConfiguration.registered.txt");

itk::ImageIOBase::Pointer imageIO = itk::ImageIOFactory::CreateImageIO(
(inputPath + stageTiles.Tiles[0].FileName).c_str(), itk::ImageIOFactory::FileModeType::ReadMode);
(inputPath + stageTiles.Tiles[0].FileName).c_str(), itk::ImageIOFactory::FileModeEnum::ReadMode);
imageIO->SetFileName(inputPath + stageTiles.Tiles[0].FileName);
imageIO->ReadImageInformation();
const itk::ImageIOBase::IOPixelType pixelType = imageIO->GetPixelType();
Expand Down
2 changes: 1 addition & 1 deletion test/itkMontageTruthCreator.cxx
Expand Up @@ -199,7 +199,7 @@ itkMontageTruthCreator(int argc, char * argv[])
try
{
itk::ImageIOBase::Pointer imageIO =
itk::ImageIOFactory::CreateImageIO(argv[1], itk::ImageIOFactory::FileModeType::ReadMode);
itk::ImageIOFactory::CreateImageIO(argv[1], itk::ImageIOFactory::FileModeEnum::ReadMode);
imageIO->SetFileName(argv[1]);
imageIO->ReadImageInformation();
unsigned dim = imageIO->GetNumberOfDimensions();
Expand Down

0 comments on commit 952c6ce

Please sign in to comment.