Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- imageRotate = imgGray.Rotate(-avg, new Gray(255));
- }
- else
- {
- imageRotate = imgGray;
- }
- imgGray.Dispose();
- //return imageRotate.Bitmap;
- return BlackFilterImage(imageRotate);
- }
- private static Bitmap BlackFilterImage(Image<Gray, byte> img)
- {
- UMat resultImg = new UMat();
- CvInvoke.Threshold(img, resultImg, 105, 255, ThresholdType.BinaryInv); //Ошибка возникала тут
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement