Class MeshIterable<T>

    • Constructor Detail

      • MeshIterable

        public MeshIterable​(RandomAccessible<T> ra,
                            Mesh mesh,
                            double[] calibration)
        Creates an iterable for the pixels of the specified image inside the specified mesh. A calibration array (pixel sizes) is used to transform the pixel coordinates into mesh coordinates. Recompute the mesh bounding-box.
        Parameters:
        ra - the random accessible to iterate over. It is the caller responsibility to ensure the random accessible is extended to accommodate the mesh coordinates.
        mesh - the mesh to iterate in.
        calibration - the calibration array, used to map pixel coordinates to mesh coordinates (mesh_x = pixel_x * calibration[0] etc).
      • MeshIterable

        public MeshIterable​(RandomAccessible<T> ra,
                            Mesh mesh,
                            double[] calibration,
                            RealInterval boundingBox)
        Creates an iterable for the pixels of the specified image inside the specified mesh. A calibration array (pixel sizes) is used to transform the pixel coordinates into mesh coordinates.
        Parameters:
        ra - the random accessible to iterate over. It is the caller responsibility to ensure the random accessible is extended to accommodate the mesh coordinates.
        mesh - the mesh to iterate in.
        calibration - the calibration array, used to map pixel coordinates to mesh coordinates (mesh_x = pixel_x * calibration[0] etc).
        boundingBox - the bounding-box if it's available, to avoid recomputing it.