Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataViewer_Core_Extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
BioinformaticDataCompression
BigDataViewer_Core_Extension
Commits
6214823c
Commit
6214823c
authored
11 years ago
by
Tobias Pietzsch
Browse files
Options
Downloads
Patches
Plain Diff
make Hdf5ImageLoader methods getImageDimension() and existsImageData() public
parent
74b7c9e8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/bdv/img/hdf5/Hdf5ImageLoader.java
+13
-2
13 additions, 2 deletions
src/main/java/bdv/img/hdf5/Hdf5ImageLoader.java
with
13 additions
and
2 deletions
src/main/java/bdv/img/hdf5/Hdf5ImageLoader.java
+
13
−
2
View file @
6214823c
...
...
@@ -287,10 +287,21 @@ public class Hdf5ImageLoader implements ViewerImgLoader< UnsignedShortType, Vola
*
* @return true, if the given image data is present.
*/
p
rotected
boolean
existsImageData
(
final
View
view
,
final
int
level
)
p
ublic
boolean
existsImageData
(
final
View
view
,
final
int
level
)
{
final
int
timepoint
=
view
.
getTimepointIndex
();
final
int
setup
=
view
.
getSetupIndex
();
return
existsImageData
(
timepoint
,
setup
,
level
);
}
/**
* Checks whether the given image data is present in the hdf5. Missing data
* may be caused by missing partition files
*
* @return true, if the given image data is present.
*/
public
boolean
existsImageData
(
final
int
timepoint
,
final
int
setup
,
final
int
level
)
{
final
int
index
=
getViewInfoCacheIndex
(
timepoint
,
setup
,
level
);
if
(
cachedExistence
[
index
]
==
null
)
// will set cachedExistence[ index ] as a side effect
...
...
@@ -314,7 +325,7 @@ public class Hdf5ImageLoader implements ViewerImgLoader< UnsignedShortType, Vola
return
Views
.
interval
(
new
ConstantRandomAccessible
<
T
>(
constant
,
3
),
new
FinalInterval
(
d
)
);
}
p
rotected
long
[]
getImageDimension
(
final
int
timepoint
,
final
int
setup
,
final
int
level
)
p
ublic
long
[]
getImageDimension
(
final
int
timepoint
,
final
int
setup
,
final
int
level
)
{
final
int
index
=
getViewInfoCacheIndex
(
timepoint
,
setup
,
level
);
if
(
cachedDimensions
[
index
]
==
null
)
...
...
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