final Sequence initialSequence = sequence(0, p, sizeP); final int indexMin = initialSequence.getIndexMin(); final int indexCount = initialSequence.getIndexCount(); for (int z = 0; z < indexCount; z++) {
final Sequence initialSequence = sequence(0, p, sizeP); final int indexMin = initialSequence.getIndexMin(); final int indexCount = initialSequence.getIndexCount(); for (int z = 0; z < indexCount; z++) {
/** * Gets the frame index associated with the given (Z, T) position of the * specified series. * * @param sequence The sequence from which to extract the frame. * @param z The focal plane. * @param t The time point. * @param s The series (i.e., stage position). * @return The frame index which can be passed to {@link Sequence#getFrame}. */ private int frameIndex(final Sequence sequence, int z, int t, int s) { return (framesAreTime[s] ? t : z) + sequence.getIndexMin(); }
/** * Gets the frame index associated with the given (Z, T) position of the * specified series. * * @param sequence The sequence from which to extract the frame. * @param z The focal plane. * @param t The time point. * @param s The series (i.e., stage position). * @return The frame index which can be passed to {@link Sequence#getFrame}. */ private int frameIndex(final Sequence sequence, int z, int t, int s) { return (framesAreTime[s] ? t : z) + sequence.getIndexMin(); }