![]() ![]() _invertSelf ( ) ¶Įquivalent to invertSelf, except that there are no checks that the bounds are defined. Y – The y coordinate of the pixel to add to.Įquivalent to fill, except that there are no checks that the bounds are defined. X – The x coordinate of the pixel to add to. Y – The y coordinate of the pixel to set.Įquivalent to addValue except that there are no checks that the values X – The x coordinate of the pixel to set. _setValue ( x, y, value ) ¶Įquivalent to setValue except that there are no checks that the valuesįall within the bounds of the image, and the coordinates must be given as x, y. _getValue ( x, y ) ¶Įquivalent to getValue, except there are no checks that the values fall The arguments here may be either (x, y) or a PositionI instance. _shift ( delta ) ¶Įquivalent to shift, but without some of the sanity checks and delta mustĭelta – The amount to shift as a PositionI. _view ( ) ¶Įquivalent to view, but without some of the sanity checks and extra options. _wrap ( bounds, hermx, hermy ) ¶Ī version of wrap without the sanity checks.Įquivalent to image.wrap(bounds, hermitian='x', hermitian='y'). (Optional arguments are shown with their default values after the = sign.) There are several ways to construct an Image: If you are constructing a new Image from scratch, the default is numpy.float32, but you Numpy.uint32, numpy.int16, numpy.int32, numpy.float32, and numpy.float64. There are 6 data types that the Image can use for the data values. Numpy array directly via the array attribute, you will need to be careful about this Users are typically insulated from this concern by the Image API, but if you access the , which means this is really in terms of the normal x,y values. Is different from the default convention used by numpy. all treat x as the column number and y as the row number. The same meaning for these coordinates as most astronomy applications do: ds9, SAOImage, In most applications with images, we will use (x,y) to refer to the coordinates. For other implications of this convention, see the description of initialization Subimages of larger images (for example, to successively draw many galaxies into one large The main reason for this is that it allows users to work directly with and modify This class creates shallow copies unless a deep copy is explicitly requested using the copy Itself, or an existing array can be provided by the user. The NumPy array may be constructed by the Image class The Image class encapsulates all the relevant information about an image including a NumPy arrayįor the pixel values, a bounding box, and some kind of WCS that converts between pixelĬoordinates and world coordinates. Image ( * args, ** kwargs ) ¶Ī class for storing image data along with the pixel scale or WCS information ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |