21 #ifndef IMG_ALG_CLEAR_HH
22 #define IMG_ALG_CLEAR_HH
28 namespace ost {
namespace img {
namespace alg {
34 template <
typename T,
class D>
35 void VisitState(ImageStateImpl<T,D>& isi)
const {
36 static const T zero=T();
37 for(T* p = isi.Data().GetData(); p<isi.Data().GetEnd();++p) {
42 static String GetAlgorithmName() {
return "Clear";}
47 typedef ImageStateConstModIPAlgorithm<ClearFnc>
Clear;
ImageStateConstModIPAlgorithm< ClearFnc > Clear