MCPcopy Create free account
hub / github.com/Tom94/tev / tiffGetColorMap

Function tiffGetColorMap

src/imageio/TiffImageLoader.cpp:209–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209array<span<const uint16_t>, 3> tiffGetColorMap(TIFF* tif) {
210 uint16_t bitsPerSample = 8;
211 TIFFGetFieldDefaulted(tif, TIFFTAG_BITSPERSAMPLE, &bitsPerSample);
212 const size_t n = 1u << bitsPerSample;
213 return tiffGetRgbSpans<uint16_t>(tif, TIFFTAG_COLORMAP, n);
214}
215
216Task<void> tiffDataToFloat32(
217 ETiffKind kind,

Callers 1

readTiffImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected