Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
191:46cb2eedc2e0 | 192:371da7fe2c0e |
---|---|
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "LinearAlgebra.h" | 24 #include "LinearAlgebra.h" |
25 #include "../Volumes/ImageBuffer3D.h" | |
25 | 26 |
26 namespace OrthancStone | 27 namespace OrthancStone |
27 { | 28 { |
28 // Reference: "Multiple View Geometry in Computer Vision (2nd Edition)" | 29 // Reference: "Multiple View Geometry in Computer Vision (2nd Edition)" |
29 class FiniteProjectiveCamera : public boost::noncopyable | 30 class FiniteProjectiveCamera : public boost::noncopyable |
104 const Vector& v) const; | 105 const Vector& v) const; |
105 | 106 |
106 // Apply the camera to a 3D point "v" that is possibly at | 107 // Apply the camera to a 3D point "v" that is possibly at |
107 // infinity. The result is a 2D point in homogeneous coordinates. | 108 // infinity. The result is a 2D point in homogeneous coordinates. |
108 Vector ApplyGeneral(const Vector& v) const; | 109 Vector ApplyGeneral(const Vector& v) const; |
110 | |
111 Orthanc::ImageAccessor* ApplyRaytracer(const ImageBuffer3D& source, | |
112 Orthanc::PixelFormat targetFormat, | |
113 unsigned int targetWidth, | |
114 unsigned int targetHeight, | |
115 bool mip) const; | |
109 }; | 116 }; |
110 } | 117 } |