Class Subset

java.lang.Object
skyview.survey.Image
skyview.survey.Subset
All Implemented Interfaces:
java.io.Serializable, Component

public class Subset
extends Image
A image that is a subset of an existing image. Generally this class is expected to be used when we break down a larger image into subimages for sampling purposes. Any action that modifies the image should use the setData or setDataArray methods. Modifying the array returned by getDataArray will not modify the underlying image. E.g., the BoxSmoother should not be run on the subset images but on the parent.
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class skyview.survey.Image

    data
  • Constructor Summary

    Constructors 
    Constructor Description
    Subset​(Image parent, int x, int y, int nx, int ny)
    Create a two-d subset of a (presumed) 2-d parent.
    Subset​(Image parent, int x, int y, int z, int nx, int ny, int nz)
    Create a subset of a parent image.
  • Method Summary

    Modifier and Type Method Description
    void clearData()
    Clear the data array
    double getData​(long npix)
    Get a pixels data associated with the image.
    double[] getDataArray()
    Get the data as an array.
    java.lang.String getDescription()
    Get a description of the object
    void setData​(long npix, double newData)
    Set the data associated with the image.
    void setDataArray​(double[] newData)
    Set the data array
    static int[][] split​(Image parent, int[] index, int nx, int ny)
    Split an index array into subarrays for each subset.
    static Image[] split​(Image parent, int nx, int ny)
    Split an image into subsets.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait