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

Method setCurrentSlice

ij/src/main/java/ij/ImagePlus.java:1933–1939  ·  view source on GitHub ↗
(int slice)

Source from the content-addressed store, hash-verified

1931 }
1932
1933 final void setCurrentSlice(int slice) {
1934 currentSlice = slice;
1935 int stackSize = getStackSize();
1936 if (nChannels==stackSize) updatePosition(currentSlice, 1, 1);
1937 if (nSlices==stackSize) updatePosition(1, currentSlice, 1);
1938 if (nFrames==stackSize) updatePosition(1, 1, currentSlice);
1939 }
1940
1941 public int getChannel() {
1942 return position[0];

Callers 6

setProcessorMethod · 0.95
setProcessor2Method · 0.95
setStackMethod · 0.95
getStackMethod · 0.95
getCurrentSliceMethod · 0.95
setSliceMethod · 0.95

Calls 2

getStackSizeMethod · 0.95
updatePositionMethod · 0.95

Tested by

no test coverage detected