Skip to content

Return partial used corners for calibration - #31

Merged
mcm001 merged 5 commits into
PhotonVision:mainfrom
thatcomputerguy0101:partial-observations-corners-used
Aug 2, 2026
Merged

Return partial used corners for calibration#31
mcm001 merged 5 commits into
PhotonVision:mainfrom
thatcomputerguy0101:partial-observations-corners-used

Conversation

@thatcomputerguy0101

@thatcomputerguy0101 thatcomputerguy0101 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Previously, calibrateCamera would return used corner info for all corners of a board, including those that were not part of the observation. This corrects the problem by changing the input to a list to be able to map the skipped corner info back to the same subset and order that was provided in the parameters. AbstractList can be used on the caller's side to perform on the fly conversion if needed.

@thatcomputerguy0101

thatcomputerguy0101 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

I'm not a big fan of the extra int array for storing ids, but I don't see a better option. AbstractList seems like a better option than iterators for the input data.

@thatcomputerguy0101
thatcomputerguy0101 force-pushed the partial-observations-corners-used branch from 5da6576 to 52e591c Compare July 30, 2026 17:23
@thatcomputerguy0101
thatcomputerguy0101 force-pushed the partial-observations-corners-used branch from 52e591c to 14729e6 Compare July 30, 2026 17:38
@thatcomputerguy0101
thatcomputerguy0101 force-pushed the partial-observations-corners-used branch from 14729e6 to 047ddb6 Compare July 30, 2026 18:09
Comment thread src/main/java/org/photonvision/mrcal/MrCalJNI.java
@mcm001
mcm001 merged commit ba8e332 into PhotonVision:main Aug 2, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants