21 #ifndef IMG_ALG_COMMON_CONJ_HH
22 #define IMG_ALG_COMMON_CONJ_HH
28 namespace ost {
namespace img {
namespace alg {
34 void do_conj_ip(image_state::ValueHolder<V>& vh);
38 void do_conj_ip<Complex>(image_state::ValueHolder<Complex>& vh)
40 for(
Complex* it=vh.GetData();it!=vh.GetEnd();++it) {
41 (*it) = std::conj(*it);
47 void do_conj_ip(image_state::ValueHolder<V>& vh) {}
52 template <
typename T,
class D>
54 do_conj_ip(isi.
Data());
in-place modifying image state const visitor plus ip algorithm
ValueHolder< T > & Data()
direct access to value holder
#define DLLEXPORT_IMG_ALG
std::complex< Real > Complex
ImageStateConstModIPAlgorithm< ConjFnc > Conj
static String GetAlgorithmName()
void VisitState(ImageStateImpl< T, D > &isi) const