Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
b2faf8451a
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
29 lines (22 sloc) 732 Bytes
% TEST TIFF SAVED IN IMAGEJ NON STANDARD FORMAT
%% INPUT DATA
if ispc
imageJFolder = '\\storage.corp.brain.mpg.de\data\Projects\ImageIO\TestDataFormats\tiffImageJ';
else
imageJFolder = '/Volumes/data/Projects/ImageIO/TestDataFormats/tiffImageJ';
end
filename = 'stitched_shadowCorrection_bin221.tif';
fullPath = fullfile(imageJFolder, filename);
%% CREATE READER
reader = imageIO.TiffReader(fullPath);
%% READ PART OF THE DATA
dataImageJ = reader.read('Cols', 1:4:reader.width, 'rows', 1:4:reader.height, 'Z', 1:300);
%% GET THE COLORMAP AS WELL
imgColormap = reader.colormap;
%% SHOW DATA
disp(['Showing file ' filename])
figure(1)
for m = 1:size(dataImageJ, 3)
imshow(dataImageJ(:,:,m), imgColormap)
pause(0.05)
end