[ismrmrd] 186/281: Starting to fix bugs in ImageHeader in matlab api.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:01:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag ismrmrd0.5
in repository ismrmrd.

commit dc8e0e300035f352f52eb990234df2961d883ab1
Author: Souheil Inati <souheil.inati at nih.gov>
Date:   Fri Sep 6 16:35:36 2013 -0400

    Starting to fix bugs in ImageHeader in matlab api.
---
 matlab/+ismrmrd/ImageHeader.m | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/matlab/+ismrmrd/ImageHeader.m b/matlab/+ismrmrd/ImageHeader.m
index a234aae..9c0940b 100644
--- a/matlab/+ismrmrd/ImageHeader.m
+++ b/matlab/+ismrmrd/ImageHeader.m
@@ -5,7 +5,7 @@ classdef ImageHeader < handle
         version = uint16([]);                % First unsigned int indicates the version %
         flags = uint64([]);                  % bit field with flags %
         measurement_uid = uint32([]);        % Unique ID for the measurement %
-        matrix_size = single([]);            % Pixels in the 3 spatial dimensions
+        matrix_size = uint16([]);            % Pixels in the 3 spatial dimensions
         field_of_view = single([]);          % Size (in mm) of the 3 spatial dimensions %
         channels = uint16([]);               % Number of receive channels %
         position = single([]);               % Three-dimensional spatial offsets from isocenter %
@@ -22,7 +22,7 @@ classdef ImageHeader < handle
         acquisition_time_stamp = uint32([]); % Acquisition clock %
         physiology_time_stamp = uint32([]);  % Physiology time stamps, e.g. ecg, breating, etc. %
         image_data_type = uint16([]);        % e.g. unsigned short, float, complex float, etc. %
-        image_type = uint16(imtype);         % e.g. magnitude, phase, complex, real, imag, etc. %
+        image_type = uint16([]);             % e.g. magnitude, phase, complex, real, imag, etc. %
         image_index = uint16([]);			 % e.g. image number in series of images  %
         image_series_index = uint16([]);     % e.g. series number %
         user_int = int32([]);                % Free user parameters %
@@ -112,12 +112,12 @@ classdef ImageHeader < handle
             hdr.phase_dir = obj.phase_dir(:,range);
             hdr.slice_dir = obj.slice_dir(:,range);
             hdr.patient_table_position = obj.patient_table_position(:,range);
-            hdr.average = obj.idx.average(range);
-            hdr.slice = obj.idx.slice(range);
-            hdr.contrast = obj.idx.contrast(range);
-            hdr.phase = obj.idx.phase(range);
-            hdr.repetition = obj.idx.repetition(range);
-            hdr.set = obj.idx.set(range);
+            hdr.average = obj.average(range);
+            hdr.slice = obj.slice(range);
+            hdr.contrast = obj.contrast(range);
+            hdr.phase = obj.phase(range);
+            hdr.repetition = obj.repetition(range);
+            hdr.set = obj.set(range);
             hdr.acquisition_time_stamp = obj.acquisition_time_stamp(range);
             hdr.physiology_time_stamp = obj.physiology_time_stamp(:,range);
             hdr.image_data_type = obj.image_data_type(range);
@@ -156,8 +156,8 @@ classdef ImageHeader < handle
             obj.image_type(1,range)               = zeros(1,N,'uint16');
             obj.image_index(1,range)              = zeros(1,N,'uint16');
             obj.image_series_index(1,range)       = zeros(1,N,'uint16');
-            obj.user_int(1:3,range)               = zeros(8,1,'int32');
-            obj.user_float(1:3,range)             = zeros(8,1,'single');
+            obj.user_int(1:8,range)               = zeros(8,N,'int32');
+            obj.user_float(1:8,range)             = zeros(8,N,'single');
         end
         
         function append(obj, head)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git



More information about the debian-science-commits mailing list