Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using pad (line 60) #6

Open
zoujinger opened this issue Nov 27, 2017 · 2 comments
Open

Error using pad (line 60) #6

zoujinger opened this issue Nov 27, 2017 · 2 comments

Comments

@zoujinger
Copy link

Hello,
I am new to image registration, and when I ran registration_example3d.m there is the error:

Error using pad (line 60)
First argument must be a string array, character vector, or cell array of character vectors.

Error in display_image (line 76)
imPlaneYX = pad(plane,[sz sz]);

Error in display_fixed_moving_warped (line 35)
display_image(fixed,1,'fixed','gamma',gamma)

Error in display_results_registration3d (line 46)
display_fixed_moving_warped(fixed,moving,deformed,gamma);

Error in registration_execute (line 455)
display_results_registration3d(...

Error in registration_example3d (line 215)
registration_execute();

I don't know how to fix it,Would you please help me?
Thank you very much!

@zoujinger
Copy link
Author

I am using matlab R2017b.

@fordanic
Copy link
Owner

It appears that MATLAB has changed so the old pad function is now replace with padarray. Try replacing the pad call with padarray and you should be good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants