Skip to content

Commit 2e89d0c

Browse files
authored
Merge pull request #279 from melissalinkert/compact-dimensions
Add `--compact` option to reduce array dimensionality
2 parents 8853f60 + 141c6f5 commit 2e89d0c

File tree

3 files changed

+486
-76
lines changed

3 files changed

+486
-76
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/**
2+
* Copyright (c) 2025 Glencoe Software, Inc. All rights reserved.
3+
*
4+
* This software is distributed under the terms described by the LICENSE.txt
5+
* file you can find at the root of the distribution bundle. If the file is
6+
* missing please request a copy by contacting info@glencoesoftware.com
7+
*/
8+
package com.glencoesoftware.bioformats2raw;
9+
10+
/**
11+
* Describe an axis, including type and dimensions.
12+
*/
13+
public class Axis {
14+
15+
private char type;
16+
private int length;
17+
private int chunkSize;
18+
19+
/**
20+
* Create a new Axis.
21+
*
22+
* @param t axis type (e.g. 'X')
23+
* @param len axis length
24+
* @param chunk chunk length (expected to be in range [1, len])
25+
*/
26+
public Axis(char t, int len, int chunk) {
27+
type = t;
28+
length = len;
29+
chunkSize = chunk;
30+
}
31+
32+
/**
33+
* @return axis type (e.g. 'X')
34+
*/
35+
public char getType() {
36+
return type;
37+
}
38+
39+
/**
40+
* @return axis length
41+
*/
42+
public int getLength() {
43+
return length;
44+
}
45+
46+
/**
47+
* @return chunk length
48+
*/
49+
public int getChunkSize() {
50+
return chunkSize;
51+
}
52+
53+
}

0 commit comments

Comments
 (0)