Skip to content

Commit 3dbdaaf

Browse files
mseng10hjmjohnson
authored andcommitted
ENH: Update enums from recent enum changes in ITK
1 parent 7388d86 commit 3dbdaaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/itkAnalyzeObjectLabelMapImageIO.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ bool AnalyzeObjectLabelMapImageIO::CanReadFile( const char* FileNameToRead )
269269

270270
void AnalyzeObjectLabelMapImageIO::ReadImageInformation()
271271
{
272-
m_ComponentType = CHAR;
273-
m_PixelType = SCALAR;
272+
m_ComponentType = IOComponentEnum::CHAR;
273+
m_PixelType = IOPixelEnum::SCALAR;
274274
// Opening the file
275275
std::ifstream inputFileStream;
276276
inputFileStream.open(m_FileName.c_str(), std::ios::binary | std::ios::in);
@@ -576,7 +576,7 @@ AnalyzeObjectLabelMapImageIO
576576

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

0 commit comments

Comments
 (0)