if (std::string(method).substr(0, 7).compare("nearest") == 0)
else if (std::string(method).substr(0, 7).compare("linear") == 0)
else if (std::string(method).substr(0, 5).compare("cubic") == 0)
mexErrMsgTxt("Specify one of nearest, linear, cubic as the interpolation method argument.");
Great piece of code. However will not compile on windows machines due to lack of a round() function in the c standard. Including the following piece of code in the cpp file will allow it to compile:
First of all, a great piece of code.
I have been using the B-spline point registration code and have been attempting to make the following changes to your code:
I would like to constrain the control points that lie on the axis origin and maxima so that they cannot be moved from their positions. Ideally it would be possible to constrain these points in one dimension. I have been attempting to remove the control points that lie outside of the image to create the same effect, but with my limited knowledge of B-spline registration and your code I am getting some errors.