I can't use mapping toolbox functions fully on this geotiff image. I got some errors..
2 views (last 30 days)
Show older comments
% 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 Comments
Answers (1)
Image Analyst
on 3 Jan 2014
What does it say if you do
whos boston1
right after you read it in?
2 Comments
Image Analyst
on 3 Jan 2014
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.
See Also
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!