comparison Framework/DicomizerParameters.cpp @ 298:fa734a851551

New option: "tiff-alignment" to control deep zoom of plain TIFF over IIIF
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Jul 2023 08:19:16 +0200
parents 20a730889ae2
children 7020852a8fa9
comparison
equal deleted inserted replaced
297:c1687b8fc800 298:fa734a851551
71 jpegQuality_(90), 71 jpegQuality_(90),
72 forceReencode_(false), 72 forceReencode_(false),
73 opticalPath_(OpticalPath_Brightfield), 73 opticalPath_(OpticalPath_Brightfield),
74 isCytomineSource_(false), 74 isCytomineSource_(false),
75 cytomineImageInstanceId_(-1), 75 cytomineImageInstanceId_(-1),
76 cytomineCompression_(ImageCompression_Png) 76 cytomineCompression_(ImageCompression_Png),
77 tiffAlignment_(1)
77 { 78 {
78 backgroundColor_[0] = 255; 79 backgroundColor_[0] = 255;
79 backgroundColor_[1] = 255; 80 backgroundColor_[1] = 255;
80 backgroundColor_[2] = 255; 81 backgroundColor_[2] = 255;
81 threadsCount_ = ChooseNumberOfThreads(); 82 threadsCount_ = ChooseNumberOfThreads();
357 else 358 else
358 { 359 {
359 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); 360 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls);
360 } 361 }
361 } 362 }
363
364
365 void DicomizerParameters::SetTiffAlignment(unsigned int alignment)
366 {
367 if (alignment <= 0)
368 {
369 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
370 }
371 else
372 {
373 tiffAlignment_ = alignment;
374 }
375 }
362 } 376 }