12.07.2015 Views

Digital Image Processing (using Java)

Digital Image Processing (using Java)

Digital Image Processing (using Java)

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

(p.289)LISTING 11.2 filter() method of BinaryOpenOp.public Buffered<strong>Image</strong> filter(Buffered<strong>Image</strong> src, Buffered<strong>Image</strong> dest){BinaryErodeOp erodeOp = new BinaryErodeOp(structElement);BinaryDilateOp dilateOp = new BinaryDilateOp(structElement);if (dest == null)dest = createCompatibleDest<strong>Image</strong>(src, null);return dilateOp.filter(erodeOp.filter(src, null), dest);}java BinaryOpen input.pbm result.pbm sq3x3.basjava HitAndMiss java BinaryMorphologyTool char_a.png 5 5heightwidth# binary structuringelement# width =3# height = 3# xorigin = 1# yorigin = 1111111111- 72 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!