comparison Applications/Samples/SingleFrameApplication.h @ 147:f48c5d422d45 wasm

removed meaningless ImageInterpolation_Linear value
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 23 Jan 2018 17:50:19 +0100
parents e2fe9352f240
children fccffbf99ba1
comparison
equal deleted inserted replaced
146:fb7d602e7025 147:f48c5d422d45
221 ("instance", boost::program_options::value<std::string>(), 221 ("instance", boost::program_options::value<std::string>(),
222 "Orthanc ID of the instance") 222 "Orthanc ID of the instance")
223 ("frame", boost::program_options::value<unsigned int>()->default_value(0), 223 ("frame", boost::program_options::value<unsigned int>()->default_value(0),
224 "Number of the frame, for multi-frame DICOM instances") 224 "Number of the frame, for multi-frame DICOM instances")
225 ("smooth", boost::program_options::value<bool>()->default_value(true), 225 ("smooth", boost::program_options::value<bool>()->default_value(true),
226 "Enable linear interpolation to smooth the image") 226 "Enable bilinear interpolation to smooth the image")
227 ; 227 ;
228 228
229 options.add(generic); 229 options.add(generic);
230 } 230 }
231 231
260 260
261 RenderStyle s; 261 RenderStyle s;
262 262
263 if (parameters["smooth"].as<bool>()) 263 if (parameters["smooth"].as<bool>())
264 { 264 {
265 s.interpolation_ = ImageInterpolation_Linear; 265 s.interpolation_ = ImageInterpolation_Bilinear;
266 } 266 }
267 267
268 //s.drawGrid_ = true; 268 //s.drawGrid_ = true;
269 widget->SetLayerStyle(0, s); 269 widget->SetLayerStyle(0, s);
270 #else 270 #else
300 //s.drawGrid_ = true; 300 //s.drawGrid_ = true;
301 s.SetColor(255, 0, 0); // Draw missing PET layer in red 301 s.SetColor(255, 0, 0); // Draw missing PET layer in red
302 s.alpha_ = 0.5; 302 s.alpha_ = 0.5;
303 s.applyLut_ = true; 303 s.applyLut_ = true;
304 s.lut_ = Orthanc::EmbeddedResources::COLORMAP_JET; 304 s.lut_ = Orthanc::EmbeddedResources::COLORMAP_JET;
305 s.interpolation_ = ImageInterpolation_Linear; 305 s.interpolation_ = ImageInterpolation_Bilinear;
306 widget->SetLayerStyle(1, s); 306 widget->SetLayerStyle(1, s);
307 } 307 }
308 #endif 308 #endif
309 309
310 widget_ = widget.get(); 310 widget_ = widget.get();