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

Method getCurrentSlice

ij/src/main/java/ij/ImagePlus.java:1926–1931  ·  view source on GitHub ↗

Returns the current stack index (one-based) or 1 if this is a single image.

()

Source from the content-addressed store, hash-verified

1924
1925 /** Returns the current stack index (one-based) or 1 if this is a single image. */
1926 public int getCurrentSlice() {
1927 if (currentSlice<1) setCurrentSlice(1);
1928 if (currentSlice>getStackSize())
1929 setCurrentSlice(getStackSize());
1930 return currentSlice;
1931 }
1932
1933 final void setCurrentSlice(int slice) {
1934 currentSlice = slice;

Callers 15

updateVirtualSliceMethod · 0.95
getStringPropertyMethod · 0.95
getLocationAsStringMethod · 0.95
getProcessorMethod · 0.95
getInfoMethod · 0.95
getCursorLocMethod · 0.95
setMetadataMethod · 0.95
getMetadataMethod · 0.95
doPropertyMethod · 0.95
runMethod · 0.95
runMethod · 0.95
setSliceLabelMethod · 0.95

Calls 2

setCurrentSliceMethod · 0.95
getStackSizeMethod · 0.95

Tested by

no test coverage detected