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

Method getBitDepth

ij/src/main/java/ij/ImageStack.java:643–647  ·  view source on GitHub ↗

Returns the bit depth (8=byte, 16=short, 24=RGB, 32=float).

()

Source from the content-addressed store, hash-verified

641
642 /** Returns the bit depth (8=byte, 16=short, 24=RGB, 32=float). */
643 public int getBitDepth() {
644 if (this.bitDepth==0 && stack!=null && stack.length>0)
645 setBitDepth(stack[0]);
646 return this.bitDepth;
647 }
648
649 /** Sets the bit depth (8=byte, 16=short, 24=RGB, 32=float). */
650 public void setBitDepth(int depth) {

Callers 2

convertTypeMethod · 0.45
createMethod · 0.45

Calls 1

setBitDepthMethod · 0.95

Tested by

no test coverage detected