Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
eb3afcd3
Commit
eb3afcd3
authored
11 years ago
by
Yoann Guilhem
Browse files
Options
Downloads
Patches
Plain Diff
Update TIFF IO functions.
Signed-off-by:
Yoann Guilhem
<
yoann.guilhem@esrf.fr
>
parent
c846b7b5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
zUtil_TIFF/gtTIFInfoReader.m
+5
-3
5 additions, 3 deletions
zUtil_TIFF/gtTIFInfoReader.m
zUtil_TIFF/gtTIFVolReaderWithInfo.m
+1
-1
1 addition, 1 deletion
zUtil_TIFF/gtTIFVolReaderWithInfo.m
with
6 additions
and
4 deletions
zUtil_TIFF/gtTIFInfoReader.m
+
5
−
3
View file @
eb3afcd3
...
...
@@ -8,10 +8,10 @@ function info = gtTIFInfoReader(filename, info)
% filename = <string> Path to info file
%
% OPTIONAL INPUT
% info = <struct> TIFF info str
s
ture to complete
% info = <struct> TIFF info str
uc
ture to complete
%
% OUTPUT:
% info = <struct> Information about volume
% info
= <struct> Information about volume
%
% Note:
% info file should be formatted as the following:
...
...
@@ -33,9 +33,11 @@ bbox = fscanf(fid, '[%d, %d, %d] [%d, %d, %d]', 6).';
vSize
=
fscanf
(
fid
,
'%f'
,
1
);
fclose
(
fid
);
% Store bbox, voxel size and origin
% Store bbox,
volume size,
voxel size and origin
info
.
boundingBoxMin
=
bbox
(
1
:
3
)
+
1
;
info
.
boundingBoxMax
=
bbox
(
4
:
6
);
info
.
boundingBox
=
[
info
.
boundingBoxMin
info
.
boundingBoxMax
];
info
.
volSize
=
bbox
(
4
:
6
)
-
bbox
(
1
:
3
);
info
.
voxelSize
=
vSize
;
info
.
origin
=
bbox
(
1
:
3
)
.*
info
.
voxelSize
;
info
.
infoFile
=
filename
;
...
...
This diff is collapsed.
Click to expand it.
zUtil_TIFF/gtTIFVolReaderWithInfo.m
+
1
−
1
View file @
eb3afcd3
...
...
@@ -27,7 +27,7 @@ function [vol, info] = gtTIFVolReaderWithInfo(filename, varargin)
if
isempty
(
varargin
)
[
vol
,
info
]
=
gtTIFVolReader
(
filename
);
else
[
vol
,
info
]
=
gtTIFVolReader
(
filename
,
varargin
);
[
vol
,
info
]
=
gtTIFVolReader
(
filename
,
varargin
{:}
);
end
% Extract path, basename and extension from file name
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment