Skip to content

Commit

Permalink
no LUTs in SIDD 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith committed Aug 8, 2023
1 parent f4a1984 commit 9557807
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions six/modules/c++/six/source/NITFReadControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,13 @@ void NITFReadControl::setDisplayLUT(six::NITFImageInfo& currentInfo, const nitf:
return;
}

const auto version = pData->getVersion();
if (version == "1.0.0") // TODO: remove this hard-coded SIDD version check
{
// LUTs only with SIDD 2.0 and later
return;
}

// There's no requirement for SIDD 2.0 to have a LUT
const auto bandInfo0 = subheader.getBandInfo(0);
const int numLUTs = bandInfo0.getNumLUTs();
Expand Down

0 comments on commit 9557807

Please sign in to comment.