Hi Xi,
MATLAB Compiler does not support deployment of all built-in functions. If a user invokes an unsupported function in a deployed application, the application will not work as expected.
In your case, the function cpselect from the Image Processing Toolbox is not supported by the MATLAB Compiler and that is why you are seeing the above error. You can check the complete list of Support for MATLAB, Simulink and Toolboxes for more information.
Hope this helps!