Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyScene.h @ 1330:a72c2c9af49a
minimal option for GetSceneExtent, especially for masks
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 30 Mar 2020 09:51:01 +0200 |
parents | d4e6cd35107b |
children | 379c00958553 e0cdf8688d56 |
comparison
equal
deleted
inserted
replaced
1321:d4e6cd35107b | 1330:a72c2c9af49a |
---|---|
278 return NULL; | 278 return NULL; |
279 } | 279 } |
280 | 280 |
281 void GetLayersIndexes(std::vector<size_t>& output) const; | 281 void GetLayersIndexes(std::vector<size_t>& output) const; |
282 | 282 |
283 virtual Extent2D GetSceneExtent() const; | 283 virtual Extent2D GetSceneExtent(bool minimal) const; |
284 | 284 |
285 virtual void Render(Orthanc::ImageAccessor& buffer, | 285 virtual void Render(Orthanc::ImageAccessor& buffer, |
286 const AffineTransform2D& viewTransform, | 286 const AffineTransform2D& viewTransform, |
287 ImageInterpolation interpolation, | 287 ImageInterpolation interpolation, |
288 bool applyWindowing) const; | 288 bool applyWindowing) const; |
304 const Orthanc::DicomMap& dicom, | 304 const Orthanc::DicomMap& dicom, |
305 const std::string& parentOrthancId, | 305 const std::string& parentOrthancId, |
306 double pixelSpacingX, | 306 double pixelSpacingX, |
307 double pixelSpacingY, | 307 double pixelSpacingY, |
308 bool invert, | 308 bool invert, |
309 bool autoCrop, | |
309 ImageInterpolation interpolation, | 310 ImageInterpolation interpolation, |
310 bool usePam); | 311 bool usePam); |
311 | 312 |
312 void ExportDicom(Deprecated::OrthancApiClient& orthanc, | 313 void ExportDicom(Deprecated::OrthancApiClient& orthanc, |
313 const Json::Value& dicomTags, | 314 const Json::Value& dicomTags, |
314 const std::string& parentOrthancId, | 315 const std::string& parentOrthancId, |
315 double pixelSpacingX, | 316 double pixelSpacingX, |
316 double pixelSpacingY, | 317 double pixelSpacingY, |
317 bool invert, | 318 bool invert, |
319 bool autoCrop, | |
318 ImageInterpolation interpolation, | 320 ImageInterpolation interpolation, |
319 bool usePam); | 321 bool usePam); |
320 | 322 |
321 void ExportToCreateDicomRequest(Json::Value& createDicomRequestContent, | 323 void ExportToCreateDicomRequest(Json::Value& createDicomRequestContent, |
322 const Json::Value& dicomTags, | 324 const Json::Value& dicomTags, |
323 const std::string& parentOrthancId, | 325 const std::string& parentOrthancId, |
324 double pixelSpacingX, | 326 double pixelSpacingX, |
325 double pixelSpacingY, | 327 double pixelSpacingY, |
326 bool invert, | 328 bool invert, |
329 bool autoCrop, | |
327 ImageInterpolation interpolation, | 330 ImageInterpolation interpolation, |
328 bool usePam); | 331 bool usePam); |
329 | 332 |
330 Orthanc::Image* ExportToCreateDicomRequestAndImage(Json::Value& createDicomRequestContent, | 333 Orthanc::Image* ExportToCreateDicomRequestAndImage(Json::Value& createDicomRequestContent, |
331 const Json::Value& dicomTags, | 334 const Json::Value& dicomTags, |
332 const std::string& parentOrthancId, | 335 const std::string& parentOrthancId, |
333 double pixelSpacingX, | 336 double pixelSpacingX, |
334 double pixelSpacingY, | 337 double pixelSpacingY, |
335 bool invert, | 338 bool invert, |
339 bool autoCrop, | |
336 ImageInterpolation interpolation); | 340 ImageInterpolation interpolation); |
337 | 341 |
338 Orthanc::Image* ExportToImage(double pixelSpacingX, | 342 Orthanc::Image* ExportToImage(double pixelSpacingX, |
339 double pixelSpacingY, | 343 double pixelSpacingY, |
340 ImageInterpolation interpolation, | 344 ImageInterpolation interpolation, |
345 bool autoCrop, | |
341 bool applyWindowing) | 346 bool applyWindowing) |
342 { | 347 { |
343 return ExportToImage(pixelSpacingX, pixelSpacingY, interpolation, false, 0, applyWindowing); | 348 return ExportToImage(pixelSpacingX, pixelSpacingY, interpolation, false, 0, autoCrop, applyWindowing); |
344 } | 349 } |
345 | 350 |
346 Orthanc::Image* ExportToImage(double pixelSpacingX, | 351 Orthanc::Image* ExportToImage(double pixelSpacingX, |
347 double pixelSpacingY, | 352 double pixelSpacingY, |
348 ImageInterpolation interpolation, | 353 ImageInterpolation interpolation, |
349 bool invert, | 354 bool invert, |
350 int64_t maxValue /* for inversion */, | 355 int64_t maxValue /* for inversion */, |
356 bool autoCrop, | |
351 bool applyWindowing); | 357 bool applyWindowing); |
352 | 358 |
353 void ExtractLayerFromRenderedScene(Orthanc::ImageAccessor& layer, | 359 void ExtractLayerFromRenderedScene(Orthanc::ImageAccessor& layer, |
354 const Orthanc::ImageAccessor& renderedScene, | 360 const Orthanc::ImageAccessor& renderedScene, |
355 size_t layerIndex, | 361 size_t layerIndex, |
362 bool isCropped, | |
356 ImageInterpolation interpolation); | 363 ImageInterpolation interpolation); |
357 }; | 364 }; |
358 } | 365 } |