Alex-Badea / Pocket-3DR

A MATLAB implementation of a full 3D Reconstruction pipeline for small-scale reconstructions using the functions provided by the Czech Technical University in Prague, Faculty of Electrical Engineering
9 stars 6 forks source link

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

Open vinayak-pathak opened 3 years ago

vinayak-pathak commented 3 years ago

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);

rajithadesilva commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Nope.