如何使用MATLAB将图像分割成部分 [英] How to Split Images into parts using MATLAB

查看:830
本文介绍了如何使用MATLAB将图像分割成部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了一个大小为[ 17935 10968 ]像素的卫星图像,我想平均切割图像并在各个部分处理我所需的算法(例如:我需要将像素范围切割成4等于部分)。

I got a satellite image of size [17935 10968] pixels, I want to cut image equally and process my required algorithm on individual parts (eg: I need to cut above pixel range into 4 equal parts).

如何在不丢失中间像素的情况下分割图像?我的要求是(1到5600和5601到最终像素)。

How can I split image without loosing intermediate pixels? My requirement is like (1 to 5600 and 5601 to the end pixel).

任何人都知道如何在MATLAB中分割这么大的图像?

And anybody got any idea how to split images that are this big in MATLAB?

推荐答案

upperLeft = theImage(1:5600, 1:5600, :);
upperRight = theImage(1:5600, 5601:end, :);
lowerLeft = theImage(5601:end, 1:5600, :);
lowerLeft = theImage(5601:end, 1:5601:end, :);

这篇关于如何使用MATLAB将图像分割成部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆