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

Method convertToFloat

ij/src/main/java/ij/ImageStack.java:711–719  ·  view source on GitHub ↗

Creates a float version of this stack.

()

Source from the content-addressed store, hash-verified

709
710 /** Creates a float version of this stack. */
711 public ImageStack convertToFloat() {
712 ImageStack stack2 = new ImageStack(width, height, getColorModel());
713 for (int i=1; i<=size(); i++) {
714 ImageProcessor ip2 = this.getProcessor(i);
715 ip2 = ip2.convertToFloat();
716 stack2.addSlice(this.getSliceLabel(i), ip2);
717 }
718 return stack2;
719 }
720
721 int viewers(int inc) {
722 viewers += inc;

Callers 7

convertTypeMethod · 0.45
processMethod · 0.45
processMethod · 0.45
runMethod · 0.45
convolveMethod · 0.45
processMethod · 0.45
convertTypeMethod · 0.45

Calls 6

getColorModelMethod · 0.95
sizeMethod · 0.95
getProcessorMethod · 0.95
convertToFloatMethod · 0.95
addSliceMethod · 0.95
getSliceLabelMethod · 0.95

Tested by

no test coverage detected