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

Method setBitDepth

ij/src/main/java/ij/ImageStack.java:83–94  ·  view source on GitHub ↗
(Object pixels)

Source from the content-addressed store, hash-verified

81 }
82
83 private void setBitDepth(Object pixels) {
84 if (pixels==null)
85 return;
86 if (pixels instanceof byte[])
87 this.bitDepth = 8;
88 else if (pixels instanceof short[])
89 this.bitDepth = 16;
90 else if (pixels instanceof float[])
91 this.bitDepth = 32;
92 else if (pixels instanceof int[])
93 this.bitDepth = 24;
94 }
95
96 /**
97 * @deprecated

Callers 4

addSliceMethod · 0.95
setPixelsMethod · 0.95
getBitDepthMethod · 0.95
runMethod · 0.95

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected