STIR 6.4.0
assign_to_subregion.h
Go to the documentation of this file.
1
2/*
3 Copyright (C) 2003- 2009, Hammersmith Imanet Ltd
4 This file is part of STIR.
5
6 SPDX-License-Identifier: Apache-2.0
7
8 See STIR/LICENSE.txt for details
9*/
10
11#ifndef __stir_assign_to_subregion_H__
12#define __stir_assign_to_subregion_H__
13
22#include "stir/Array.h"
23
24START_NAMESPACE_STIR
25
33template <class elemT>
34inline void assign_to_subregion(Array<3, elemT>& input_array,
35 const BasicCoordinate<3, int>& mask_location,
36 const BasicCoordinate<3, int>& half_size,
37 const elemT& value);
38END_NAMESPACE_STIR
39
41
42#endif
defines the stir::Array class for multi-dimensional (numeric) arrays
implementation of the stir::assign_to_subregion function
void assign_to_subregion(Array< 3, elemT > &input_array, const BasicCoordinate< 3, int > &mask_location, const BasicCoordinate< 3, int > &half_size, const elemT &value)
assign a value to a sub-region of an array
Definition assign_to_subregion.inl:24