Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subsets highlighted in purple produce strange results #326

Closed
BenWor opened this issue May 20, 2024 · 3 comments
Closed

Subsets highlighted in purple produce strange results #326

BenWor opened this issue May 20, 2024 · 3 comments

Comments

@BenWor
Copy link

BenWor commented May 20, 2024

Certain subsets along a diagonal line seem to produce strange results (see paraview image). I am expecting smooth results. These datapoints seem to be highlighted in the DICe image with purple dots. What does this mean?
Screenshot 2024-05-20 at 17 35 30 (3)
Screenshot 2024-05-20 at 17 41 08 (3)

@dicengine
Copy link
Owner

It could be a problem with the calibration or the initial cross-correlation. I see some warnings that the cross correlation initialization had some issues. What was the calibration error? Another thing you can check is right clicking on a point in the left or right image and checking if the epipolar line that shows up goes through that point in the stereo image. This is a quick check of the calibration parameters themselves.

@BenWor
Copy link
Author

BenWor commented May 21, 2024

Thanks for the quick response. I've attached a screenshot of the calibration results window and a copy of the working directory files.

https://drive.google.com/drive/folders/1KU9w98_IBP_F_cH0NHzss3MNk8JCblAC?usp=share_link

Screenshot 2024-05-21 at 11 49 17 (3)

I skipped images 1 and 2, as the first had a very large error (above 1), and the second was skipped automatically. I am unsure why these two images did not work because they are similar to images 3 and 4. Is it problematic that the calibration plate only takes up a small portion of the image?

When processing the cross-correlation, I get warnings in the console about the distortion parameters. What does this mean?

Screenshot 2024-05-21 at 12 00 20

When I right-click on any of the purple points, the red line appears on the other image, indicating that the purple lines seem to lie along the epipolar line.

Thanks for your time.

@dicengine
Copy link
Owner

It's likely an issue with your calibration. Only 7 pairs of images might not be enough to get a good calibration. Typically, we use at least 20 or 30. Also, the calibration target should fill the field of view. The target you have in the image above only covers about 5% or less of the field of view. It would be nearly impossible to get the distortion parameters correct from this standoff distance. You want to hold the calibration plate close to the camera (like it is in the sample image in the middle of the GUI). Another thing you can do to check your calibration is to add a couple fiducials to your sample where you know the distance between them or the position in space. Then you can check your output in DICe against that benchmark.

@BenWor BenWor closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants