Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Toolbox/FiniteProjectiveCamera.cpp @ 1640:52b8b96cb55f
cleaning namespaces
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Nov 2020 16:55:22 +0100 |
parents | 8563ea5d8ae4 |
children | 9ac2a65d4172 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/FiniteProjectiveCamera.cpp Tue Nov 10 16:41:11 2020 +0100 +++ b/OrthancStone/Sources/Toolbox/FiniteProjectiveCamera.cpp Tue Nov 10 16:55:22 2020 +0100 @@ -318,7 +318,7 @@ LOG(WARNING) << "Output pixel format: " << Orthanc::EnumerationToString(target.GetFormat()); const unsigned int slicesCount = geometry.GetProjectionDepth(projection); - const OrthancStone::Vector pixelSpacing = geometry.GetVoxelDimensions(projection); + const Vector pixelSpacing = geometry.GetVoxelDimensions(projection); const unsigned int targetWidth = target.GetWidth(); const unsigned int targetHeight = target.GetHeight(); @@ -333,8 +333,8 @@ { LOG(INFO) << "Applying raytracer on slice: " << z << "/" << slicesCount; - OrthancStone::CoordinateSystem3D slice = geometry.GetProjectionSlice(projection, z); - OrthancStone::ImageBuffer3D::SliceReader sliceReader(source, projection, static_cast<unsigned int>(z)); + CoordinateSystem3D slice = geometry.GetProjectionSlice(projection, z); + ImageBuffer3D::SliceReader sliceReader(source, projection, static_cast<unsigned int>(z)); SourceReader pixelReader(sliceReader.GetAccessor()); @@ -346,11 +346,11 @@ for (unsigned int x = 0; x < targetWidth; x++) { // Backproject the ray originating from the center of the target pixel - OrthancStone::Vector direction = camera.GetRayDirection(static_cast<double>(x + 0.5), - static_cast<double>(y + 0.5)); + Vector direction = camera.GetRayDirection(static_cast<double>(x + 0.5), + static_cast<double>(y + 0.5)); // Compute the 3D intersection of the ray with the slice plane - OrthancStone::Vector p; + Vector p; if (slice.IntersectLine(p, camera.GetCenter(), direction)) { // Compute the 2D coordinates of the intersections, in slice coordinates