I have been using Boof CV libary for Image Stitching and followed this.
I have to convert some Data types and methods to be acceptable in android.
I want an equivalent of this in Android BoofCV
T inputA = ConvertBufferedImage.convertFromSingle(imageA, null, imageType);
Where imageA is a bitmap image.
Luckily I found the solution
T inputA=ConvertBitmap.bitmapToGray(imageA,null,imageType,null);