21 #ifndef IMG_ALG_FILL_HH
22 #define IMG_ALG_FILL_HH
28 namespace ost {
namespace img {
namespace alg {
38 #pragma GCC diagnostic push
39 #pragma GCC diagnostic ignored "-Wunused-function"
45 #pragma GCC diagnostic pop
56 explicit FillFnc(
Real f) {set_rval(f);}
57 explicit FillFnc(
const Complex& f) {set_cval(f);}
59 void SetFillValue(
Real f) {set_rval(f);}
60 void SetFillValue(
const Complex& f) {set_cval(f);}
62 template <
typename T,
class D>
63 void VisitState(ImageStateImpl<T,D>& isi)
const {
64 for(T* p = isi.Data().GetData(); p<isi.Data().GetEnd();++p) {
73 static String GetAlgorithmName() {
return "Fill";}
85 typedef ImageStateConstModIPAlgorithm<FillFnc>
Fill;
std::complex< Real > Complex
Real Val2Val< Complex, Real >(const Complex &c)
ImageStateConstModIPAlgorithm< FillFnc > Fill