MATLAB: Is it possible to make an image in GUI matlab which is not predefine but define by user input matlab gui is it possible to make an image in GUI matlab which is not predefine but define by user input? Best Answer n = input('how big a square do you want?');v = input('how bright do you want, 0-255');MyImage = zeros(n,n,'uint8');MyImage(:) = v;image(MyImage);colormap(gray(256)) Related SolutionsMATLAB: Increase RGB image saturation. This is easier in HSV colorspace:RGB = rand(100, 100, 3);HSV = rgb2hsv(RGB);% "20% more" saturation:HSV(:, :, 2) = HSV(:, :, 2) * 1.2;% or add:% HSV(:, :, 2) = HSV(:, :, 2) + 0.2;HSV(HSV > 1) = 1; % Limit valuesRGB = hsv2rgb(HSV); MATLAB: How to create a white image Try this to create a grayscale image:whiteImage = 255 * ones(N, M, 'uint8');imshow(whiteImage);To create an RGB image, try this:whiteImage = 255 * ones(480, 640, 3, 'uint8');imshow(whiteImage); Related QuestionHow to get the same image as generated by imagesc using ind2rgbUse linspace without scalar input
Best Answer