15 #ifndef __IPSDKIMAGEPROCESSING_PLANINDEXEDINITIALIZEROPERATORS_H__ 16 #define __IPSDKIMAGEPROCESSING_PLANINDEXEDINITIALIZEROPERATORS_H__ 20 #include <IPSDKImageProcessing/OutputInitializer/PlanIndexed/FromImagePlanIndexedInitializer.h> 21 #include <IPSDKImageProcessing/OutputInitializer/PlanIndexed/FromOtherPlanIndexedInitializer.h> 23 #include <boost/make_shared.hpp> 24 #include <boost/function.hpp> 36 template <
typename OutputAttributeType>
38 fromImage(
const boost::weak_ptr<OutputAttributeType>& pOutputAttribute,
46 boost::shared_ptr<OutputInitializerType> pInitializer = boost::make_shared<OutputInitializerType>();
47 pInitializer->
init(pOutputAttribute, pInputImageAttribute, fromImagePlanIndexedPolicy);
51 template <
typename OutputAttributeType>
53 fromImage(
const boost::shared_ptr<OutputAttributeType>& pOutputAttribute,
57 return fromImage(boost::weak_ptr<OutputAttributeType>(pOutputAttribute),
59 fromImagePlanIndexedPolicy);
61 template <
typename OutputAttributeType>
63 fromImage(
const boost::shared_ptr<OutputAttributeType>& pOutputAttribute,
66 return fromImage(boost::weak_ptr<OutputAttributeType>(pOutputAttribute),
70 template <
typename OutputAttributeType>
75 return fromImage(boost::weak_ptr<OutputAttributeType>(pOutputAttribute),
79 template <
typename OutputAttributeType>
84 return fromImage(boost::weak_ptr<OutputAttributeType>(pOutputAttribute),
88 template <
typename OutputAttributeType>
90 fromImage(
const boost::weak_ptr<OutputAttributeType>& pOutputAttribute,
93 boost::function<
typename OutputAttributeType::PlanStorageType ()> planCreator)
99 boost::shared_ptr<OutputInitializerType> pInitializer = boost::make_shared<OutputInitializerType>();
100 pInitializer->
init(pOutputAttribute, pInputImageAttribute, fromImagePlanIndexedPolicy, planCreator);
104 template <
typename OutputAttributeType>
106 fromImage(
const boost::shared_ptr<OutputAttributeType>& pOutputAttribute,
109 boost::function<
typename OutputAttributeType::PlanStorageType ()> planCreator)
111 return fromImage(boost::weak_ptr<OutputAttributeType>(pOutputAttribute),
113 fromImagePlanIndexedPolicy,
116 template <
typename OutputAttributeType>
118 fromImage(
const boost::shared_ptr<OutputAttributeType>& pOutputAttribute,
120 boost::function<
typename OutputAttributeType::PlanStorageType ()> planCreator)
122 return fromImage(boost::weak_ptr<OutputAttributeType>(pOutputAttribute),
127 template <
typename OutputAttributeType>
131 boost::function<
typename OutputAttributeType::PlanStorageType ()> planCreator)
133 return fromImage(boost::weak_ptr<OutputAttributeType>(pOutputAttribute),
138 template <
typename OutputAttributeType>
142 boost::function<
typename OutputAttributeType::PlanStorageType ()> planCreator)
144 return fromImage(boost::weak_ptr<OutputAttributeType>(pOutputAttribute),
155 template <
typename OutputAttributeType>
157 fromOther(
const boost::weak_ptr<OutputAttributeType>& pOutputAttribute,
164 boost::shared_ptr<OutputInitializerType> pInitializer = boost::make_shared<OutputInitializerType>();
165 pInitializer->
init(pOutputAttribute, pInputAttribute);
169 template <
typename OutputAttributeType>
171 fromOther(
const boost::shared_ptr<OutputAttributeType>& pOutputAttribute,
174 return fromOther(boost::weak_ptr<OutputAttributeType>(pOutputAttribute),
178 template <
typename OutputAttributeType>
180 fromOther(
const boost::weak_ptr<OutputAttributeType>& pOutputAttribute,
182 boost::function<
typename OutputAttributeType::PlanStorageType ()> planCreator)
188 boost::shared_ptr<OutputInitializerType> pInitializer = boost::make_shared<OutputInitializerType>();
189 pInitializer->
init(pOutputAttribute, pInputAttribute, planCreator);
193 template <
typename OutputAttributeType>
195 fromOther(
const boost::shared_ptr<OutputAttributeType>& pOutputAttribute,
197 boost::function<
typename OutputAttributeType::PlanStorageType ()> planCreator)
199 return fromOther(boost::weak_ptr<OutputAttributeType>(pOutputAttribute),
211 #endif // __IPSDKIMAGEPROCESSING_PLANINDEXEDINITIALIZEROPERATORS_H__ boost::weak_ptr< const BasePlanIndexedAttribute > PlanIndexedAttributeConstWeakPtr
weak pointer to const plan indexed attribute
Definition: PlanIndexedAttributeTypes.h:39
Plan indexed attribute will be initialized taking into account z and t components of image...
Definition: PlanIndexedInitializerTypes.h:57
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
void init(const PlanIndexedAttributeWeakPtr &pOutputAttribute, const PlanIndexedAttributeConstWeakPtr &pInputAttribute)
initialize object
Definition: FromOtherPlanIndexedInitializer.h:93
processor::OutputInitializerPtr fromImageButVolume(const boost::shared_ptr< OutputAttributeType > &pOutputAttribute, const ImageAttributeConstPtr &pInputAttribute)
function allowing to initialize a plan indexed collection with respect to a given image geometry ...
Definition: PlanIndexedInitializerOperators.h:81
boost::weak_ptr< const BaseImageAttribute > ImageAttributeConstWeakPtr
Definition: ImageAttributeTypes.h:38
Plan indexed attribute will be initialized taking into account z, c and t components of image...
Definition: PlanIndexedInitializerTypes.h:61
processor::OutputInitializerPtr fromOther(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const PlanIndexedAttributeConstWeakPtr &pInputAttribute)
function allowing to initialize a plan indexed collection with respect to a given other plan indexed ...
Definition: PlanIndexedInitializerOperators.h:157
Definition of import/export macro for library.
Plan indexed attribute will be initialized taking into account c and t components of image...
Definition: PlanIndexedInitializerTypes.h:59
boost::shared_ptr< BaseOutputInitializer > OutputInitializerPtr
shared pointer to output intializer
Definition: OutputInitializerTypes.h:51
void init(const PlanIndexedAttributeWeakPtr &pOutputAttribute, const ImageAttributeConstWeakPtr &pInputImageAttribute, const eFromImagePlanIndexedPolicy &fromImagePlanIndexedPolicy)
initialize object
Definition: FromImagePlanIndexedInitializer.h:97
boost::shared_ptr< const BaseImageAttribute > ImageAttributeConstPtr
Definition: ImageAttributeTypes.h:32
processor::OutputInitializerPtr fromImage(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const ImageAttributeConstWeakPtr &pInputImageAttribute, const eFromImagePlanIndexedPolicy &fromImagePlanIndexedPolicy)
function allowing to initialize a plan indexed collection with respect to a given image geometry ...
Definition: PlanIndexedInitializerOperators.h:38
eFromImagePlanIndexedPolicy
enumerate describing rule behavior for image plans matching
Definition: PlanIndexedInitializerTypes.h:47
Class allowing initialization of a plan indexed collection from an other plan indexed collection...
Definition: FromOtherPlanIndexedInitializer.h:31
Predefined type for image management.
processor::OutputInitializerPtr fromImageButColor(const boost::shared_ptr< OutputAttributeType > &pOutputAttribute, const ImageAttributeConstPtr &pInputAttribute)
function allowing to initialize a plan indexed collection with respect to a given image geometry ...
Definition: PlanIndexedInitializerOperators.h:72
Class allowing to initialize a plan indexed collection from plans of an image.
Definition: FromImagePlanIndexedInitializer.h:33