Skip to content
Snippets Groups Projects
Commit 43271741 authored by Sebastien Herbert's avatar Sebastien Herbert
Browse files

Fix for tiff reader warning

Elevation map input function is now a pure imread()
Fixes warning: "Warning: TIFF library warning - 'TIFFReadDirectory:  Unknown field with tag50838 (0xc696) encountered.'"
parent b7951bd8
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ end ...@@ -226,7 +226,7 @@ end
function dataCurv = loadElev(PARAMS) function dataCurv = loadElev(PARAMS)
%% Load a 2D elevation map and format it as a mesh %% Load a 2D elevation map and format it as a mesh
fprintf('Loading elevation map\n'); fprintf('Loading elevation map\n');
tiffImage = read(Tiff(PARAMS.curveLoc)); tiffImage = imread(PARAMS.curveLoc);
% Calculate the scaling factor % Calculate the scaling factor
scalingFactor = ceil( size(tiffImage,1)*size(tiffImage,2) / PARAMS.maxTiffImSize); scalingFactor = ceil( size(tiffImage,1)*size(tiffImage,2) / PARAMS.maxTiffImSize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment