21 #ifndef IMG_ALG_TRANSFORM_MIRROR_HH
22 #define IMG_ALG_TRANSFORM_MIRROR_HH
27 namespace ost {
namespace img {
namespace alg {
34 template <
typename T,
class D>
36 boost::shared_ptr<ImageStateImpl<T,D> > out_state(
new ImageStateImpl<T,D>(in_state.GetExtent().Mirror(this->planes_),in_state.GetSampling()));
40 out_state->Value(p.
Mirror(this->planes_))=in_state.Value(p);
51 typedef ImageStateConstModOPAlgorithm<MirrorFnc>
Mirror;
#define DLLEXPORT_IMG_ALG
static String GetAlgorithmName()
ImageStateConstModOPAlgorithm< MirrorFnc > Mirror
bool AtEnd() const
Returns true if iterator has reached end.
ImageStateBasePtr VisitState(const ImageStateImpl< T, D > &in_state) const
Point Mirror(int planes)
return mirror point according to planes
boost::shared_ptr< ImageStateBase > ImageStateBasePtr
class encapsulating 1D to 3D point