Clear

Description

Sets all image values to zero.

Full scope is iplt::alg::Clear in C++, resp iplt.alg.Clear in Python.

Examples

C++

#include <iplt/image.hh>
#include <iplt/alg/clear.hh>

using namespace iplt;

int main() 
{
  ImageHandle img = CreateImage(Size(10,10));
  img.ApplyIP( alg::Clear() );

  return 0;
}

Python

from iplt import *
img = CreateImage(Size(10,10))
img.ApplyIP( alg.Clear() )

Back to Algorithm List