diff Framework/Toolbox/FiniteProjectiveCamera.h @ 192:371da7fe2c0e wasm

FiniteProjectiveCamera::ApplyRaytracer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Mar 2018 17:11:11 +0100
parents 45b03b04a777
children b70e9be013e4
line wrap: on
line diff
--- a/Framework/Toolbox/FiniteProjectiveCamera.h	Fri Mar 16 15:01:52 2018 +0100
+++ b/Framework/Toolbox/FiniteProjectiveCamera.h	Fri Mar 16 17:11:11 2018 +0100
@@ -22,6 +22,7 @@
 #pragma once
 
 #include "LinearAlgebra.h"
+#include "../Volumes/ImageBuffer3D.h"
 
 namespace OrthancStone
 {
@@ -106,5 +107,11 @@
     // Apply the camera to a 3D point "v" that is possibly at
     // infinity. The result is a 2D point in homogeneous coordinates.
     Vector ApplyGeneral(const Vector& v) const;
+
+    Orthanc::ImageAccessor* ApplyRaytracer(const ImageBuffer3D& source,
+                                           Orthanc::PixelFormat targetFormat,
+                                           unsigned int targetWidth,
+                                           unsigned int targetHeight,
+                                           bool mip) const;
   };
 }