Skip to content

Commit d0307f6

Browse files
committed
update squeeze
1 parent c36ebc9 commit d0307f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/@Image/squeeze.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@
2222
name = createNewName(obj, '%s-squeeze');
2323
res = Image('Data', permute(obj.Data, [keepDims removeDims 4 5]), ...
2424
'Parent', obj, 'Dimension', length(keepDims), 'Name', name);
25-
res.Type = obj.Type;
25+
res.Type = obj.Type;
26+
27+
% copy spatial calibration info
28+
res.Spacing = obj.Spacing(keepDims);
29+
res.Origin = obj.Origin(keepDims);
30+
res.UnitName = obj.UnitName;

0 commit comments

Comments
 (0)