image (class)¶
- class panstamps.image(log, imagePath, arcsecSize, settings=False, crosshairs=True, transient=False, scale=True, invert=False, greyscale=False, colorImage=False)[source][source]¶
Bases:
objectThe worker class for the image module
Key Arguments
log– loggersettings– the settings dictionaryimagePath– path to the image to manipulatearcsecSize– the size of the image stamps to download (1 arcsec == 4 pixels).crosshairs– add crosshairs to the image?. Default Truetransient– add a small transient marker at the centre of the image. Default Falsescale– add scale bar and orientation indicator to the image. Default Trueinvert– invert the colours of the image. Default Falsegreyscale– convert the image to greyscale. Default FalsecolorImage– is the input image a color image, Default **False*. Note, also assumes a color image if ‘color’ in filename
Usage
```python from panstamps.image import image myimage = image(
log=log, settings=False, imagePath=”70.60271m21.72433/color_igr_ra70.602710_dec-21.724330_arcsec120_skycell0812.050.jpeg”, arcsecSize=120, crosshairs=True, transient=False, scale=True, invert=False, greyscale=False, colorImage=True
Here’s the resulting image from this code:
Methods