Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataViewer_Fiji_Plugin
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_Fiji_Plugin
Commits
7a7b85bd
Commit
7a7b85bd
authored
10 years ago
by
Tobias Pietzsch
Browse files
Options
Downloads
Patches
Plain Diff
bugfix in ImportPlugin: revised openAsVirtualStack logic when using monolithicImgLoader.
parent
7d4fa8d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/bdv/ij/ImportPlugIn.java
+6
-6
6 additions, 6 deletions
src/main/java/bdv/ij/ImportPlugIn.java
with
6 additions
and
6 deletions
src/main/java/bdv/ij/ImportPlugIn.java
+
6
−
6
View file @
7a7b85bd
...
...
@@ -27,6 +27,7 @@ import net.imglib2.RandomAccessibleInterval;
import
net.imglib2.type.numeric.integer.UnsignedShortType
;
import
bdv.ViewerImgLoader
;
import
bdv.img.hdf5.Hdf5ImageLoader
;
import
bdv.img.hdf5.MultiResolutionImgLoader
;
import
bdv.spimdata.SequenceDescriptionMinimal
;
import
bdv.spimdata.SpimDataMinimal
;
import
bdv.spimdata.XmlIoSpimDataMinimal
;
...
...
@@ -170,22 +171,21 @@ public class ImportPlugIn implements PlugIn
@SuppressWarnings
(
"unchecked"
)
BasicImgLoader
<
UnsignedShortType
>
il
=
(
BasicImgLoader
<
UnsignedShortType
>
)
seq
.
getImgLoader
();
boolean
duplicateImp
=
!
openAsVirtualStack
;
final
boolean
duplicateImp
=
!
openAsVirtualStack
;
if
(
!
openAsVirtualStack
&&
il
instanceof
Hdf5ImageLoader
)
{
final
Hdf5ImageLoader
h5il
=
(
Hdf5ImageLoader
)
il
;
il
=
h5il
.
getMonolithicImageLoader
();
duplicateImp
=
false
;
}
final
RandomAccessibleInterval
<
UnsignedShortType
>
img
;
if
(
il
instanceof
Viewer
ImgLoader
)
if
(
il
instanceof
MultiResolution
ImgLoader
)
{
final
Viewer
ImgLoader
<
UnsignedShortType
,
?
>
v
il
=
(
Viewer
ImgLoader
<
UnsignedShortType
,
?
>
)
seq
.
getImgLoader
()
;
final
int
numMipmapLevels
=
v
il
.
numMipmapLevels
(
setupId
);
final
MultiResolution
ImgLoader
<
UnsignedShortType
>
m
il
=
(
MultiResolution
ImgLoader
<
UnsignedShortType
>
)
il
;
final
int
numMipmapLevels
=
m
il
.
numMipmapLevels
(
setupId
);
if
(
mipmap
>=
numMipmapLevels
)
mipmap
=
numMipmapLevels
-
1
;
img
=
v
il
.
getImage
(
new
ViewId
(
timepointId
,
setupId
),
mipmap
);
img
=
m
il
.
getImage
(
new
ViewId
(
timepointId
,
setupId
),
mipmap
);
}
else
img
=
il
.
getImage
(
new
ViewId
(
timepointId
,
setupId
)
);
...
...
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