N
N
Nurshat2016-10-17 17:35:34
Java
Nurshat, 2016-10-17 17:35:34

Is it possible to implement image stitching with openCV on android?

Is it possible to implement stitching images with intersecting areas using openCV on android? And if so, where can you read about it? for some reason I could not find any good information on this topic, which would combine both openCV and android.
What other libraries are there to implement this functionality?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2016-10-17
@gadfi

it all depends on the desired performance, at one time I played with ndk for simple work with images, but native android tools do a good job with this task
(I can’t find my code now, but Google gives out)

public static Bitmap overlay(Bitmap bmp1, Bitmap bmp2) {
    Bitmap bmOverlay = Bitmap.createBitmap(bmp1.getWidth(), bmp1.getHeight(), bmp1.getConfig());
    Canvas canvas = new Canvas(bmOverlay);
    canvas.drawBitmap(bmp1, new Matrix(), null);
    canvas.drawBitmap(bmp2, 0, 0, null);
    return bmOverlay;
}

IMHO openCV for such tasks is redundant

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question