I am using runImageReconstructionDemo
Here is my opt settings:
opts = struct;
opts.algorithm = 'PhaseLift';
opts.initMethod = 'optimal';
opts.tol = 1e-3;
opts.verbose = 2;
Stacktrace:
Error using reshape
To RESHAPE the number of elements must not change.
Error in runImageReconstructionDemo/A (line 120)
im = reshape(pixels,[numrows,numcols]);
Error in solvePhaseLift (line 91)
A = A(eye(size(x0,1)));
Error in solvePhaseRetrieval>solveX (line 214)
[sol, outs] = solvePhaseLift(A, At, b0, x0, opts);
Error in solvePhaseRetrieval (line 163)
[sol, outs] = solveX(A, At, b0, x0, opts); % Solve the problem using the specified
algorithm
Error in runImageReconstructionDemo (line 74)
[x, outs, opts] = solvePhaseRetrieval(@A, @at, b, numel(x), opts);
Description: After initialization is finished, the function A is expecting a vector of size nm x 1, but instead it gets nm x nm.
I am using runImageReconstructionDemo
Here is my opt settings:
opts = struct;
opts.algorithm = 'PhaseLift';
opts.initMethod = 'optimal';
opts.tol = 1e-3;
opts.verbose = 2;
Stacktrace:
Error using reshape
To RESHAPE the number of elements must not change.
Error in runImageReconstructionDemo/A (line 120)
im = reshape(pixels,[numrows,numcols]);
Error in solvePhaseLift (line 91)
A = A(eye(size(x0,1)));
Error in solvePhaseRetrieval>solveX (line 214)
[sol, outs] = solvePhaseLift(A, At, b0, x0, opts);
Error in solvePhaseRetrieval (line 163)
[sol, outs] = solveX(A, At, b0, x0, opts); % Solve the problem using the specified
algorithm
Error in runImageReconstructionDemo (line 74)
[x, outs, opts] = solvePhaseRetrieval(@A, @at, b, numel(x), opts);
Description: After initialization is finished, the function A is expecting a vector of size nm x 1, but instead it gets nm x nm.