【问题标题】:How to generate the subimage which the size of region is fixed to 17x17 by using MATLAB?如何使用MATLAB生成区域大小固定为17x17的子图像?
【发布时间】:2014-10-07 18:25:14
【问题描述】:

我是 MATLAB 的初学者。你能帮我解决这个问题吗,当给定图像的像素 (x,y) 时,原始图像大小为 292x283。如何生成区域大小固定为17x17的子图像

【问题讨论】:

  • 你知道 MatLab 中的索引是如何工作的吗?
  • 同意,见here

标签: matlab image-processing


【解决方案1】:

你可以试试这个:

>> A = imread('peppers.png');
>> size(A)
ans =
   384   512     1
A(1:17; 1:17) = [you can enter values here]
%For example
A(1:3;1:3) = [1 2 3; 1 2 3; 1 2 3];

希望对你有帮助!

【讨论】:

    猜你喜欢
    • 2012-10-31
    • 2017-09-20
    • 2019-01-20
    • 2016-08-28
    • 1970-01-01
    • 1970-01-01
    • 2018-02-14
    • 2012-04-30
    • 2011-04-16
    相关资源
    最近更新 更多