STIR 6.4.0
ParseAndCreateParametricDiscretisedDensityFrom.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>
25ParametricDiscretisedDensity<VoxelsOnCartesianGrid<elemT>>*
26ParseAndCreateFrom<ParametricDiscretisedDensity<VoxelsOnCartesianGrid<elemT>>, ExamDataT>::create(
27 const ExamDataT& exam_data) const
28{
29
30 return new ParametricDiscretisedDensity<VoxelsOnCartesianGrid<elemT>>(VoxelsOnCartesianGrid<elemT>(
31 exam_data.get_exam_info_sptr(),
32 *exam_data.get_proj_data_info_sptr(),
33 CartesianCoordinate3D<float>(this->get_zoom_z(), this->get_zoom_xy(), this->get_zoom_xy()),
34 this->get_offset(),
35 CartesianCoordinate3D<int>(
36 this->get_output_image_size_z(), this->get_output_image_size_xy(), this->get_output_image_size_xy())));
37}
38
39END_NAMESPACE_STIR
defines the stir::CartesianCoordinate3D<coordT> class
defines the stir::VoxelsOnCartesianGrid class