I — Input image scalar | vector | matrix | multidimensional array If I is a grayscale or truecolor (RGB) image, it can be uint8 , uint16, double , logical, single, or int16. If I is an indexed image, it can be uint8, uint16 , double or logical. If I is a binary image, it must be logical.
https://www.mathworks.com/help/matlab/ref/im2double.html
type.convert: Convert Data to Appropriate Type Description. Convert a data object to logical, integer, numeric, complex, character or factor as appropriate. Usage. # S3 method for default type.convert (x, na.strings = "NA", as.is = FALSE, dec = ".", numerals = c ("allow.loss", "warn.loss", "no.loss"), …) Arguments. ... See Also Examples
https://www.rdocumentation.org/packages/utils/versions/3.6.2/topics/type.convert
Matlab permits us to create our own functions These are scripts that take in certain inputs and return a value or set of values We will need these as we use built-in functions for problem solving Format of Function Declaration function [output arguments] =function_name(input arguments)
https://www.mathworks.com/help/matlab/matlab_prog/local-functions-in-scripts.html
A = reshape (1:9,3,3).' B = [1 1; 1 1] C = conv2 (A,B)
https://www.quora.com/What-algorithm-is-behind-convolution-in-MATLAB
doc for "matlab convert int16 to uint8".(Page 1 of about 7 results)