I have a mat object, which has image information used by openCV library for image processing. The mat object is basically a matrix. I need to scale this object to the size of the linear layout in which i need to display after converting it to Bitmap.
The steps would briefly be as follows:- 1. Get the height and width of the linear layout. 2. Scale the mat object to the width and height. 3. Convert the object to bitmap 4. Display the bitmap onto the linear layout
I do all this in the onStart method where the layout with and height is 0. I am failing in the first step.
How do i get the width and height. Also Can i get the coordinates of the linear layout in onstart() method.
Kindly help
Crazy idea would be to display a dummy image first, get the layout width and height and then display the actual image....i am a beginner...