Skip to content

Commit

Permalink
Fix Level Length Check (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
BytingBulldogs3539 authored May 5, 2024
1 parent 24c0320 commit fdd4f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/photonvision/mrcal/MrCalJNI.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static MrCalResult calibrateCamera(
int imageWidth, int imageHeight, double focalLen) {
double[] observations = new double[boardWidth * boardHeight * 3 * board_corners.size()];

if (!(board_corners.size() == board_corner_levels.size() && board_corners.size() == boardWidth * boardHeight)) {
if (!(board_corners.size() == board_corner_levels.size())) {
return new MrCalResult(false);
}

Expand Down

0 comments on commit fdd4f2b

Please sign in to comment.