Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QcmpCompressionLibrary
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
QcmpCompressionLibrary
Commits
d2e7c11a
Commit
d2e7c11a
authored
4 years ago
by
Vojtech Moravec
Browse files
Options
Downloads
Patches
Plain Diff
Add new class representing HyperStack dimensions.
This will replace V3i in most APIs.
parent
051469bf
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/cz/it4i/qcmp/data/HyperStackDimensions.java
+85
-0
85 additions, 0 deletions
src/main/java/cz/it4i/qcmp/data/HyperStackDimensions.java
with
85 additions
and
0 deletions
src/main/java/cz/it4i/qcmp/data/HyperStackDimensions.java
0 → 100644
+
85
−
0
View file @
d2e7c11a
package
cz.it4i.qcmp.data
;
/**
* Class representing dimensions of the Stack or Hyperstack.
* This terminology is taken from the ImageJ.
*/
public
class
HyperStackDimensions
{
private
final
int
width
;
private
final
int
height
;
private
final
int
sliceCount
;
private
final
int
numberOfTimepoints
;
/**
* Create HyperStackDimensions.
*
* @param width Width of the slice.
* @param height Height of the slice.
* @param sliceCount Slice count in the stack.
* @param numberOfTimepoints Number of stack timepoints.
*/
public
HyperStackDimensions
(
final
int
width
,
final
int
height
,
final
int
sliceCount
,
final
int
numberOfTimepoints
)
{
this
.
width
=
width
;
this
.
height
=
height
;
this
.
sliceCount
=
sliceCount
;
this
.
numberOfTimepoints
=
numberOfTimepoints
;
}
/**
* Create HyperStackDimensions for single timepoint.
*
* @param width Width of the slice.
* @param height Height of the slice.
* @param sliceCount Slice count in the stack.
*/
public
HyperStackDimensions
(
final
int
width
,
final
int
height
,
final
int
sliceCount
)
{
this
(
width
,
height
,
sliceCount
,
1
);
}
/**
* Create HyperStackDimensions for single slice and single timepoint.
*
* @param width Width of the slice.
* @param height Height of the slice.
*/
public
HyperStackDimensions
(
final
int
width
,
final
int
height
)
{
this
(
width
,
height
,
1
,
1
);
}
/**
* Get single slice width. (X)
*
* @return Slice width.
*/
public
final
int
getWidth
()
{
return
width
;
}
/**
* Get single slice height. (Y)
*
* @return Slice height.
*/
public
final
int
getHeight
()
{
return
height
;
}
/**
* Get slice count. (Z, Plane Count)
*
* @return Slice count.
*/
public
final
int
getSliceCount
()
{
return
sliceCount
;
}
/**
* Get number of timepoints of the stack.
*
* @return Timepoint count.
*/
public
final
int
getNumberOfTimepoints
()
{
return
numberOfTimepoints
;
}
}
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