Translates slice numbers of hyperstacks not in default CZT order.
(int n)
| 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() { |
no test coverage detected