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/@LSMChannelWavelength/LSMChannelWavelength.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
29 lines (25 sloc)
1.07 KB
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 LSMChannelWavelength | |
%LSMCHANNELWAVELENGTH Class representation of ChannelWavelength in LSM files | |
% For images acquired with the meta detector the wavelength range for the | |
% detected emission light is known. The information is stored in a block in | |
% the image file. The u32OffsetChannelWavelength entry of the CZ-Private | |
% tag contains the offset to this block. | |
% | |
% AUTHOR: Stefano Masneri | |
% Date: 15.3.2017 | |
properties | |
numChannels; % Number of channels for which wavelength information is stored | |
startWavelength; % Start wavelength for the image channels in meters | |
endWavelength; % End wavelength for the image channels in meters | |
end | |
methods | |
function obj = LSMChannelWavelength(lsmPtr, byteOrder) | |
%LSMCHANNELWAVELENGTH Constructor | |
% Assumes the file pointer in the correct position already | |
obj.numChannels = fread(lsmPtr, 1, 'int32', byteOrder); | |
wl = fread(lsmPtr, obj.numChannels * 2, 'double', byteOrder); | |
obj.startWavelength = wl(1:2:end); | |
obj.endWavelength = wl(2:2:end); | |
end | |
end | |
end | |