# 数字图像处理中的通道[关闭]

#### Channel in Digital Image Processing [closed]

``````%tried 3

[rows, columns, numberOfColorChannels] = size(rgbImage);
if rows >= 2048 && columns >= 1024 % check image sizes(m,n) m=rows n=columns
else
end
if rows * columns >= 2097152
else
end
[rows, columns, numberOfSubplots] = size(rgbImage);
if rows * columns >= 16 % check sub image sizes(p,p)
else
end
redChannel = rgbImage(:,:,1); % channel 1
subplot(3, 3, 2);
imshow(rgbImage);
fontSize = 10;
title('Original RGB Image', 'FontSize', fontSize)
subplot(3, 3, 4);
imshow(redChannel);
title('Red Channel', 'FontSize', fontSize)
``````
1 个回复

## 第一步：

``````img = imread("saturn.png");
%Grabbing channel 1 of the image%
Channel_1 = img(:,:,1);
%Resizing the test image to follow the size of the question%
Channel_1 = imresize(Channel_1,[2048 1024]);

for Row = 1: +16: 2048
for Column = 1: +16: 1024

fprintf("(%d,%d)\n",Row,Column);
%Grab sub-images here%

%Hint: Rows: (1 to 16) and Columns: (1 to 16) is the first sub-image.

end
end

subplot(1,2,1); imshow(Channel_1);
title("Original Image");

subplot(1,2,2);
title("Sub-Images");
``````

1 数字图像处理 Matlab [关闭]

2021-02-21 04:58:30 0 13   matlab
4 学习数字信号处理[关闭]

5 通过Python进行数字图像处理

7 高斯平滑窗口大小和数字图像处理

8 数字图像处理对比度拉伸直方图

9 微控制器中的图像处理？ [关闭]

10 图像处理