Skip to content

Error with MAGAT_ANALYZER_START_HERE #2

@TaneKafle

Description

@TaneKafle

Hi,

I am having problems with running the demo.
It runs fine up until the extraction is completed, but then I get the error message below.

I cloned the respository, added all three submodules, copied the openCV DLLs to the system and system32 directories. Added the rad2deg/deg2rad directory to Matlab path using addpath. I am using MATLAB R2018b on Windows 10.

calibrating checkerboard
Error using kmeans (line 236)
The 'Start' matrix must have the same number of columns as X.

Error in calibrateCheckerboard (line 83)
[~,c] = kmeans(diff(yc), 2, 'start', [0; max(diff(yc))]);

Error in CameraCalibration (line 44)
                        [realx, realy, camx, camy] = calibrateCheckerboard(varargin{:});

Error in processBinFilesToMatfiles (line 141)
    camcalinfo = CameraCalibration(im, checkeroptions{:});

Error in MAGAT_ANALYZER_DEMO (line 53)
    [eset,success] = processBinFilesToMatfiles(basedir, esetname);

Error in MAGAT_ANALYZER_START_HERE (line 8)
MAGAT_ANALYZER_DEMO
CameraCalibration(im) or CameraCalibration(realx, realy, camx, camy)
When constructing an instance of class 'CameraCalibration', the constructor must preserve the class of
the returned object.

Error in processBinFilesToMatfiles (line 141)
    camcalinfo = CameraCalibration(im, checkeroptions{:});

Error in MAGAT_ANALYZER_DEMO (line 53)
    [eset,success] = processBinFilesToMatfiles(basedir, esetname);

Error in MAGAT_ANALYZER_START_HERE (line 8)
MAGAT_ANALYZER_DEMO

This is just from running MAGAT_ANALYZER_START_HERE
I am wondering if there is an issue with the code, or if I have not installed the software correctly.

Many thanks,
TK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions