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

The main.m does not run(Structure from Motion section), following is the error: Principal Point negative #3

Open
vinayak-pathak opened this issue May 23, 2021 · 3 comments

Comments

@vinayak-pathak
Copy link

Error using cameraIntrinsics>parseInputsSimulation (line 270)
The value of 'principalPoint' is invalid. Expected principalPoint to be positive.

Error in cameraIntrinsics>parseInputs (line 248)
r = parseInputsSimulation(defaultParams,varargin{:});

Error in cameraIntrinsics (line 122)
r = parseInputs(varargin{:});

Error in vision.internal.bundleAdjust.convertInputDataFormat>convertToIntrinsics (line 105)
intrinsics = cameraIntrinsics(camParam.FocalLength, camParam.PrincipalPoint, imageSize);

Error in vision.internal.bundleAdjust.convertInputDataFormat (line 63)
intrinsics = convertToIntrinsics(intrinsics);

Error in vision.internal.bundleAdjust.sparseBA (line 30)
vision.internal.bundleAdjust.convertInputDataFormat(pointTracks, cameraPoses, ...

Error in bundleAdjustment (line 124)
vision.internal.bundleAdjust.sparseBA(xyzPoints, pointTracks, ...

Error in BundleAdjustment (line 15)
bundleAdjustment(xyzPoints, pointTracks, cameraPoses, cameraParams,...

Error in main (line 109)
CPBA = BundleAdjustment(CP(i-(LOCALBA_OCCUR_PER1-2) : i+1), C);

@vinayak-pathak vinayak-pathak changed the title The code does not run, following is the error: Principal Point negative The main.m does not run(Structure from Motion section), following is the error: Principal Point negative May 23, 2021
@rajithadesilva
Copy link

I also got the same issue. Earlier I got some other errors and realized that it was because I didn't have some toolboxes installed. This could also caused by such issue. It's better if the author can list a set of addons we need to install on MATLAB to run this.

@tranvanha1508
Copy link

I also got the same issue. Earlier I got some other errors and realized that it was because I didn't have some toolboxes installed. This could also caused by such issue. It's better if the author can list a set of addons we need to install on MATLAB to run this.

Are u run it sussfully

@rajithadesilva
Copy link

Nope.

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

3 participants