Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Image<Gray, Byte> src = new Image<Gray, Byte>( "Your Image.png" );
  2. Image<Gray, Byte> dst = new Image<Gray, Byte>( src.Width, src.Height );
  3. StructuringElementEx element = new StructuringElementEx( 3, 3, 1, 1, Emgu.CV.CvEnum.CV_ELEMENT_SHAPE.CV_SHAPE_CROSS );
  4.  
  5. CvInvoke.cvMorphologyEx( src, dst, IntPtr.Zero, element, CV_MORPH_OP.CV_MOP_OPEN, 1 );
  6.  
  7. ImageViewer.Show( dst, "Your morphed Image" );
  8.  
  9. CV_MORPH_OP.CV_MOP_CLOSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement