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

Method translate

ij/src/main/java/ij/VirtualStack.java:470–474  ·  view source on GitHub ↗

Translates slice numbers of hyperstacks not in default CZT order.

(int n)

Source from the content-addressed store, hash-verified

468
469 /** Translates slice numbers of hyperstacks not in default CZT order. */
470 public int translate(int n) {
471 int n2 = (indexes!=null&&indexes.length==getSize()) ? indexes[n-1]+1 : n;
472 //IJ.log("translate: "+n+" "+n2+" "+getSize()+" "+(indexes!=null?indexes.length:null));
473 return n2;
474 }
475
476 /** Returns whether this hyperstack uses index translation for hyperstacks not in default CZT order. */
477 public boolean isTranslatingIndices() {

Callers 3

getProcessorMethod · 0.95
getSliceLabelMethod · 0.95
setSliceLabelMethod · 0.95

Calls 1

getSizeMethod · 0.95

Tested by

no test coverage detected