Skip to content
Snippets Groups Projects
Commit 889a9f16 authored by Andreas Schenk's avatar Andreas Schenk
Browse files

added PHOTOMETRIC tiff tag to tiff export

parent be36b183
Branches
Tags
No related merge requests found
......@@ -324,6 +324,7 @@ void MapIOTiffHandler::do_export(const img::MapHandle& image,TIFF* tfile,TIF& fo
TIFFSetField(tfile,TIFFTAG_YRESOLUTION,yreso);
TIFFSetField(tfile,TIFFTAG_PLANARCONFIG,1);
TIFFSetField(tfile,TIFFTAG_ORIENTATION,ORIENTATION_TOPLEFT);
TIFFSetField(tfile,TIFFTAG_PHOTOMETRIC,1); // 1=zero is black
if(image.GetDomain()!=img::SPATIAL){
throw IOException("Frequency export not implemented.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment