Skip to content

Commit

Permalink
ENH: Update enums from recent enum changes in ITK
Browse files Browse the repository at this point in the history
  • Loading branch information
mseng10 authored and hjmjohnson committed Feb 18, 2020
1 parent 7388d86 commit 3dbdaaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/itkAnalyzeObjectLabelMapImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ bool AnalyzeObjectLabelMapImageIO::CanReadFile( const char* FileNameToRead )

void AnalyzeObjectLabelMapImageIO::ReadImageInformation()
{
m_ComponentType = CHAR;
m_PixelType = SCALAR;
m_ComponentType = IOComponentEnum::CHAR;
m_PixelType = IOPixelEnum::SCALAR;
// Opening the file
std::ifstream inputFileStream;
inputFileStream.open(m_FileName.c_str(), std::ios::binary | std::ios::in);
Expand Down Expand Up @@ -576,7 +576,7 @@ AnalyzeObjectLabelMapImageIO

::Write( const void* buffer)
{
if( this->GetComponentType() != UCHAR )
if( this->GetComponentType() != IOComponentEnum::UCHAR )
{
std::cerr << "Error: The pixel type needs to be an unsigned char." << std::endl;
exit(-1);
Expand Down

0 comments on commit 3dbdaaf

Please sign in to comment.