how to verify / correct Not enough input arguments with undistortImage MATLAB2015b

1 回表示 (過去 30 日間)
Zachary Mueting
Zachary Mueting 2015 年 11 月 12 日
回答済み: Dima Lisin 2015 年 11 月 12 日
Okay so I calibrate my camera with MATLAB 2015b camera calib... export camera parameters... then go to correct all the actual images using those parameters in "Image batch processor" first error I get is....
Not enough input arguments. Error in undistortImage_zm (line 85) if ~isa(cameraParams, 'cameraParameters')
same code runs fine when using the command window but not in the app.???
Any help would be moui moui appreciated.

回答 (1 件)

Dima Lisin
Dima Lisin 2015 年 11 月 12 日
Hi Zachary,
It would help if you can post the code for the function that you give to the Image Batch Processor, and a mat file containing your cameraParameters object.
Based on what you have written, I am guessing the problem is that the function you give to the Batch Processor takes only one argument: the image, while the undistortImage function takes two arguments: the image and the cameraParameters object.

カテゴリ

Help Center および File ExchangeMATLAB Support Package for IP Cameras についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by