Reputation: 7219
Trying to convert this OpenCV java code over to C#. OpenCV Android Background Subtraction
Mostly working but am stumbling on this line
bmp = Bitmap.createBitmap(mFGMask.cols(), mFGMask.rows(), Bitmap.Config.ARGB_8888);
Utils.matToBitmap(mFGMask, bmp);
So there apparently is no createBitmap method. Can any C# experts suggest how I might properly convert the above?
Upvotes: 1
Views: 803
Reputation: 125197
You can use System.Drawing.Bitmap class for creating bitmaps.
If you want to remove background (if I understood correctly), consider these useful links:
Upvotes: 1