Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. imageRotate = imgGray.Rotate(-avg, new Gray(255));
  2. }
  3. else
  4. {
  5. imageRotate = imgGray;
  6. }
  7. imgGray.Dispose();
  8.  
  9. //return imageRotate.Bitmap;
  10. return BlackFilterImage(imageRotate);
  11. }
  12.  
  13. private static Bitmap BlackFilterImage(Image<Gray, byte> img)
  14. {
  15. UMat resultImg = new UMat();
  16. CvInvoke.Threshold(img, resultImg, 105, 255, ThresholdType.BinaryInv); //Ошибка возникала тут
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement