21 #ifndef IMG_ALG_FILL_HH
22 #define IMG_ALG_FILL_HH
28 namespace ost {
namespace img {
namespace alg {
50 explicit FillFnc(
Real f) {set_rval(f);}
51 explicit FillFnc(
const Complex& f) {set_cval(f);}
53 void SetFillValue(
Real f) {set_rval(f);}
54 void SetFillValue(
const Complex& f) {set_cval(f);}
56 template <
typename T,
class D>
57 void VisitState(ImageStateImpl<T,D>& isi)
const {
58 for(T* p = isi.Data().GetData(); p<isi.Data().GetEnd();++p) {
67 static String GetAlgorithmName() {
return "Fill";}
79 typedef ImageStateConstModIPAlgorithm<FillFnc>
Fill;