Have the inverse operation of ‘stereoRectify’ in OPENCV? - opencv

Firstly, 'stereorectify' have already done based on binocular vision, and then the image matching calculation is made with the corrected image. The matching points of the left and right images have been generated. Now it is necessary to restore the coordinates of the matching points to the coordinates before the image rectify. How can I do?
enter image description here

I have find "initInverseRectificationMap()"in OPENCV 4.5.3,enter link description here
And I make a test to compare the image after 'stereorectify' with the image after 'InverseRectification' enter image description here,the two images are not on the same horizontal line
In addition, I compare the image without 'stereorectify' with the image after 'InverseRectification'enter image description here,the two images are parallel on a horizontal line
so,"initInverseRectificationMap()" worked.
but it works on the image type,how it works on "Point2f"?

Related

How to extract the original image from a set of modified images?

Given a set of N images, where each image can be described as
image = baseImage + uniqueOverlay
and the "uniqueOverlay" was added onto the "baseImage" using an unknown alpha value, which is constant for all images, how can I extract the unknown "baseImage"?
I have a feeling an algorithm for this already exists, but I am not able to find it as I am not very experience in image processing.

Open CV image quality issue

We are trying to process input image(attached-portion of image is masked becuase of sensitive data) using open cv 3.4.2-1 and getting output with full black colour. Please check attached output image . Please suggest how we can improve the quality to processed image to remove or corp the white space and get only that ID card portion of the image. Because after this,the image will be processed for OCR. Currently due to bad output image OCR failes completely.
Input image -maskes the portion of image
Output image

Is it possible to should be able to move the crop square in side a uiimagepickercontroller in camera

[1]: https://i.stack.imgur.com/NCMd0.jpg
In the above image how can i should be able to move the crop square, not the image.
enter image description here
My advice is to use the library for achieving this. Here you can find the list of libraries for image upload.
List

Hide smaller image portion, not overlapping with larger image in the background

I have two images, one larger than the other. My need is to be able to drag and place the smaller image anywhere above the larger one. The problem is that, I don't want the portion of the smaller image outside the larger image's boundary to be seen. Once the smaller image's non-transparent portion stops overlapping the larger image non-transparent portion, the non-overlapping smaller image portion should be hidden.However, when the smaller image is completely inside the larger image's non-transparent portion, it should be visible.!
[For eg., the image shown consists of a larger image that is a T-shirt and a smaller image that is of a lady.I want to add the image of the lady over the T-shirt. It should be possible to move the image of the lady anywhere inside the T-shirt.And once the image of the lady moves out of the T-shirt's outer black boundary the non-overlapping portion of the image of the lady should become transparent. Here, the portion of the T-shirt image outside the black boundary is transparent. Can someone help me with the code?
Your requirement is a pretty complex one. If the "T-Shirt" part is static than again it is easy for you to mark boundaries for that image. But if there is different background than you need to do more stuff.
Here you have to take a help of Core image. You need to process that image and get the core details of that image. Also "Morphological Operations" will help you to detect object from image. Take a look on links:
Core image processing
Morphological Operations
Also about the drag and drop follow this one.
OBDragDrop

Color selected part of image taken from camera on touch

My requirement is to fill specific color on specific area of an image. But the image should be an image taken from iphone camera or photo gallery. For example, I could take a picture of me with a blue shirt, the app should allow me to change the color of the shirt to red.
Exactly the functionality of "Paint bucket" tool of the photoshop.
I found couple of approaches
1) Using MASKS with prepared images
color selected part of image on touch
Fill color on specific portion of image?
Scanline Flood Fill Algorithm
https://github.com/Chintan-Dave/UIImageScanlineFloodfill
2) Using GLPaint (Actually this is NOT the solution I am running after)
My question is,
Is it possible to color specific area of a image WITH OUT having MASKS or with generating masks for the image on run time?
Scanline Flood Fill Algorithm does that in to a certain level. But when it comes to real time images(like selfie images) it wont work correctly?

Resources