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

Function tiffGetTransferFunction

src/imageio/TiffImageLoader.cpp:202–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202array<span<const uint16_t>, 3> tiffGetTransferFunction(TIFF* tif) {
203 uint16_t bitsPerSample = 8;
204 TIFFGetFieldDefaulted(tif, TIFFTAG_BITSPERSAMPLE, &bitsPerSample);
205 size_t n = 1u << bitsPerSample;
206 return tiffGetRgbSpans<uint16_t>(tif, TIFFTAG_TRANSFERFUNCTION, n);
207}
208
209array<span<const uint16_t>, 3> tiffGetColorMap(TIFF* tif) {
210 uint16_t bitsPerSample = 8;

Callers 1

postprocessRgbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected