opencv3.0 - OpenCV 3.0 Python, stitch and blend 2 images given Homography -
i have computed homography between 2 images. can stitch them fine i.e. can choose image show on overlapped region. doing manually (pixel pixel) , time consuming.
is there built-in function it? plus, want blend well, want blend in overlap region.
though quite late i'll answer question other people might stumble post can use addweighted function of opencv. documentation provided here @ addweighted documentation. function combines 2 images linearly proportion being set alpha , beta(1 - alpha) shown below :
ires = alpha * i1 + (1-alpha) * i2;
the code same shown below :
cv2.addweighted(orig1, alpha, orig2, (1- alpha), 0, output);
here orig1 , orig2 images blended.
Comments
Post a Comment