Error using images.internal.imageDisplayParsePVPairs in Matlab
26 views (last 30 days)
Show older comments
Majid Alaeinia
on 22 Mar 2019
Commented: Majid Alaeinia
on 23 Mar 2019
I am trying to run this code in order to warp an image, but I can not run that properly on Matlab R2018b and get the following error:
>> captureWarpPoints('man11.jpg');
Error using images.internal.imageDisplayParsePVPairs (line 71)
The parameter, notruesize, is not recognized by imageDisplayParsePVPairs
Error in images.internal.imageDisplayParseInputs (line 69)
[common_args,specific_args] = images.internal.imageDisplayParsePVPairs(varargin{:});
Error in imshow (line 245)
images.internal.imageDisplayParseInputs({'Parent','Border','Reduce'},preparsed_varargin{:});
Error in captureWarpPoints>updateRef (line 133)
refImgHandle = imshow(modRefImage, 'notruesize');
Error in captureWarpPoints (line 29)
updateRef(1, refImage, refPoints)
Note: I have Image Processing Toolkit installed.
How can I run this code properly?
0 Comments
Accepted Answer
Walter Roberson
on 23 Mar 2019
The code uses an old parameter for imshow() that was removed a number of years ago. The line 133 needs to be changed to
refImgHandle = imshow(modRefImage, 'InitialMagnification', 'fit');
More Answers (0)
See Also
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!