This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
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?
ImageIO/utils/lsmClasses/@LSMTimeStamps/LSMTimeStamps.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (23 sloc)
749 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classdef LSMTimeStamps | |
%TIMESTAMPS Simple class representing the Timestamps part of LSM metadata | |
% | |
% AUTHOR: Stefano Masneri | |
% Date: 14.3.2017 | |
properties | |
size = 0; | |
numberTimeStamps = 0; | |
timeStamps; | |
end | |
methods | |
function obj = LSMTimeStamps(lsmPtr, byteOrder) | |
%Read all the info contained in the TimeStamp part of the file. Assumes the file | |
%pointer is in the correct position already | |
obj.size = fread(lsmPtr, 1, 'int32', byteOrder); | |
obj.numberTimeStamps = fread(lsmPtr, 1, 'int32', byteOrder); | |
obj.timeStamps = zeros(obj.numberTimeStamps); | |
for k = 1:obj.numberTimeStamps | |
obj.timeStamps(k) = fread(lsmPtr, 1, 'double', byteOrder); | |
end | |
end | |
end | |
end | |