I can't use mapping toolbox functions fully on this geotiff image. I got some errors..
2 次查看(过去 30 天)
显示 更早的评论
% Reads the geotiff file
[boston1, R1] = geotiffread('G:\bhvan\rad.tif');
Reg=R1;
figure
mapshow(boston1, Reg);
axis image off
but I got below errors...
Error using checkImage>checkRGBImage (line 52)
RGB images must be size M-by-N-by-3.
Error in checkImage (line 37)
RGB = checkRGBImage(A);
Error in validateMapRasterData>parseImageInputs (line 128)
A = checkImage(mapfcnname, A, cmap, 1, 2);
Error in validateMapRasterData>validateImageComponent (line 93)
[A, R] = parseImageInputs(mapfcnname, dataArgs{:}, cmap, rules );
Error in validateMapRasterData (line 27)
[Z, SpatialRef] = validateImageComponent(mapfcnname, ...
Error in maprastershow (line 127)
[Z, SpatialRef, displayType, HGpairs] = ...
Error in mapshow (line 231)
h = showFcn(varargin{:});
0 个评论
回答(1 个)
Image Analyst
2014-1-3
What does it say if you do
whos boston1
right after you read it in?
2 个评论
Image Analyst
2014-1-3
Alright, but same question just different variable name:
What does it say if you do
whos R1
whos boston
right after you read it in? Simply giving it a variable name of R1 instead of R for the return argument is not going to cause it to fail.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!