File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 5050 % Image name, empty by default.
5151 Name = ' ' ;
5252
53+ % The path to the file containing the image, if relevant.
54+ % This property is set for images read from a file. It is usually not
55+ % kept in images resulting from operators.
56+ FilePath = ' ' ;
57+
5358 % Boolean flag indicating whether the image is calibrated or not.
5459 Calibrated = false ;
5560
@@ -252,6 +257,7 @@ function copyFields(obj, that)
252257 % Does not copy the data buffer.
253258
254259 obj.Name = that .Name ;
260+ % The "FileName" property is intentionnally not copied.
255261
256262 if isCompatibleType(obj , that .Type )
257263 obj.Type = that .Type ;
Original file line number Diff line number Diff line change 121121 img = Image(data );
122122end
123123
124- img.Name = [name ext ];
124+ % populate additional meta-data
125+ img.Name = name ;
126+ img.FilePath = fileName ;
Original file line number Diff line number Diff line change 11function img = readSeries(fileName , varargin )
2- % Reads a series of 2D images as a 3D image.
2+ % Read a series of 2D images as a 3D image.
33%
44% Syntax:
55% IMG = Image.readSeries(FILEPATH);
9595end
9696
9797img = Image(' data' , data , ' parent' , img0 );
98+
99+ % populate additional meta-data
100+ img.Name = name ;
101+ img.FilePath = fileName ;
You can’t perform that action at this time.
0 commit comments