We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81a9b5b commit 9cc57c5Copy full SHA for 9cc57c5
src/main/java/qupath/bioimageio/spec/tensor/axes/ChannelAxis.java
@@ -16,6 +16,7 @@
16
17
package qupath.bioimageio.spec.tensor.axes;
18
19
+import java.util.ArrayList;
20
import qupath.bioimageio.spec.tensor.sizes.FixedSize;
21
import qupath.bioimageio.spec.tensor.sizes.Size;
22
import qupath.bioimageio.spec.tensor.BaseTensor;
@@ -43,6 +44,14 @@ public void validate(List<? extends BaseTensor> tensors) {
43
44
// fixed size based on list of channels
45
}
46
47
+ /**
48
+ * Get the list of channel names
49
+ * @return a copy of the underlying list of channel names
50
+ */
51
+ public List<String> getChannelNames() {
52
+ return new ArrayList<>(channel_names);
53
+ }
54
+
55
@Override
56
public AxisType getType() {
57
return AxisType.C;
0 commit comments