hi! I need help with this one, in MATLAB CODE, 3D matrix
1 次查看(过去 30 天)
显示 更早的评论
Hi! I need to do the following, but I don't know how to manipulate the picture! The picture is uploaded in this link: https://drive.google.com/file/d/0B--rsLtWyjqNeFFfeGVPeW5YWFU/view?usp=sharing
I already have a code but, I dont know how to manipulate 3d matrix
Instructions:
Use google maps / earth to capture an image like the one shown. Write a program in Matlab that upload the image and estimate the area (land) of Puerto Rico from the satellite photo.
Suggested procedure:
- Generate an array that contains only the scale of the image (upper left corner). Manipulate this array to identify the equivalent area of a pixel
- Generate an arrangement that contains only Puerto Rico. Manipulate this arrangement to "separate the land from the sea." Determine the number of pixels representing land and obtain your estimate of the area of Puerto Rico using the equivalent area per pixel found in point 1.
%My program:
addpath('C:\Users\Anthony\Desktop\UPRM\Segundo año\Primer semestre\Inge3016\Asignaciones\Asignación #5');
Z = imread('PuertoRico.jpg');
Zrojos = Z(:,:,1);
Zverdes = Z(:,:,2);
Zazules = Z(:,:,3);
figure;
subplot(221); image(Z); axis image; title('original')
subplot(222); image(Zrojos); axis image; colormap(gray); title('rojos')
subplot(223); image(Zverdes); axis image; colormap(gray); title('verdes')
subplot(224); image(Zazules); axis image; colormap(gray); title('azules')
figure;
plot(image(OV));
Please Help me! Thanks a lot!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mapping Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!