MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / isRGB

Method isRGB

ij/src/main/java/ij/ImageStack.java:368–370  ·  view source on GitHub ↗

Returns true if this is a 3-slice, 8-bit RGB stack.

()

Source from the content-addressed store, hash-verified

366
367 /** Returns true if this is a 3-slice, 8-bit RGB stack. */
368 public boolean isRGB() {
369 return getSize()==3 && (stack[0] instanceof byte[]) && getSliceLabel(1)!=null && getSliceLabel(1).equals("Red");
370 }
371
372 /** Returns true if this is a 3-slice HSB stack. */
373 public boolean isHSB() {

Callers 2

updateMenusMethod · 0.95
convertMethod · 0.95

Calls 3

getSizeMethod · 0.95
getSliceLabelMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected