STIR 6.4.0
ParseAndCreateFrom.inl
Go to the documentation of this file.
1/*
2 Copyright (C) 2019, University College London
3 This file is part of STIR.
4
5 SPDX-License-Identifier: Apache-2.0
6
7 See STIR/LICENSE.txt for details
8*/
17
19//#include "stir/IO/ExamData.h"
21
22START_NAMESPACE_STIR
23
24template <class elemT, class ExamDataT>
25DiscretisedDensity<3, elemT>*
26ParseAndCreateFrom<DiscretisedDensity<3, elemT>, ExamDataT>::create(const ExamDataT& exam_data) const
27{
28 return new VoxelsOnCartesianGrid<elemT>(
29 exam_data.get_exam_info_sptr(),
30 *exam_data.get_proj_data_info_sptr(),
31 CartesianCoordinate3D<float>(this->get_zoom_z(), this->get_zoom_xy(), this->get_zoom_xy()),
32 this->get_offset(),
33 CartesianCoordinate3D<int>(
34 this->get_output_image_size_z(), this->get_output_image_size_xy(), this->get_output_image_size_xy()));
35}
36
37END_NAMESPACE_STIR
defines the stir::CartesianCoordinate3D<coordT> class
defines the stir::VoxelsOnCartesianGrid class