MATLAB Answers


using a chain code why does g = bound2im(b, M,N) always cause an undefined method or function

Asked by Kbhatti86
on 29 Mar 2013

using a chain code to get a scaled sequence of a image, but i seem to have an error always on the function bound2im saying ??? Undefined function or method 'bound2im' for input arguments of type 'double'. why is it saying this i am using MATLAB 7.11.0 r2010b please help



No products are associated with this question.

1 Answer

Answer by Walter Roberson
on 29 Mar 2013

Functions boundaries, invmoments, bound2im are used from DIPUM Toolbox, which is available to the purchasers of 'Digital Image Processing Using Matlab' by Rafael C. Gonzalez, Richard E. Woods & Steven L. Eddins. Thanks to them. They will also need some nested functions which are all included in DIPUM toolbox & in the book. 


That toolbox is the only one that I found that appears to have a function with that name. I do not know what the function is intended to do. You could consider finding a different implementation of whichever routine you found to extract chain codes.

For example, is the following of any value to you?

i am trying to implement an scanned image of a human hand which is processed i now need to find the area around the trace and i was going to use a freeman chain code to find this and find the c.diff for it. and i seem to having to errors with using the codes from the book discussed due to it not being toolbox available for standard matlab

Why not use the contribution #29518 to create the chain code?

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!