STIR 6.4.0
distributed_test_functions.h
Go to the documentation of this file.
1//
2//
3/*
4 Copyright (C) 2007- 2011, Hammersmith Imanet Ltd
5 This file is part of STIR.
6
7 SPDX-License-Identifier: Apache-2.0
8
9 See STIR/LICENSE.txt for details
10*/
11
12#ifndef __stir_recon_buildblock_DistributedTestFunctions_h__
13#define __stir_recon_buildblock_DistributedTestFunctions_h__
14
44
45#include "mpi.h"
46#include "stir/shared_ptr.h"
50#include "stir/Viewgram.h"
51#include "stir/ProjDataInfo.h"
52#include <iostream>
53#include <fstream>
54
55namespace distributed
56{
57//-----------------------test functions------------------------------------------
58
59void test_viewgram_slave(const stir::shared_ptr<stir::ProjDataInfo>& proj_data_info_ptr);
60
61void test_viewgram_master(stir::Viewgram<float> viewgram, const stir::shared_ptr<stir::ProjDataInfo>& proj_data_info_ptr);
62
63void test_image_estimate_master(const stir::DiscretisedDensity<3, float>* input_image_ptr, int slave);
64
65void test_image_estimate_slave();
66
67void test_related_viewgrams_master(const stir::shared_ptr<stir::ProjDataInfo>& proj_data_info_ptr,
68 const stir::shared_ptr<stir::DataSymmetriesForViewSegmentNumbers> symmetries_sptr,
69 stir::RelatedViewgrams<float>* y,
70 int slave);
71
72void test_related_viewgrams_slave(const stir::shared_ptr<stir::ProjDataInfo>& proj_data_info_ptr,
73 const stir::shared_ptr<stir::DataSymmetriesForViewSegmentNumbers> symmetries_sptr);
74
75void test_parameter_info_master(const std::string str, int slave, char const* const text);
76
77void test_parameter_info_slave(const std::string str);
78
79void test_bool_value_master(bool value, int slave);
80
81void test_bool_value_slave();
82
83void test_int_value_master(int value, int slave);
84
85void test_int_value_slave();
86
87void test_int_values_master(int slave);
88
89void test_int_values_slave();
90} // namespace distributed
91
92#endif
Declaration of class stir::DataSymmetriesForViewSegmentNumbers.
defines the stir::DiscretisedDensity class
Declaration of class stir::ProjDataInfo.
Declaration of class stir::RelatedViewgrams.
Declaration of class stir::Viewgram.
Namespace for distributed computation with MPI.
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast into the stir names...