TGScriptSkeleton

By Thorsten Glebe


A script skeleton for Pixinsight script development. [more]

Keywords: script development

Contents

[hide]

1 Description

[hide]

This script skeleton is a starting point for developing Pixinsight java scripts. It provides a simple list box for image selection with a preview of the selected image. The 'new instance' button allows to store the state of script parameters in a process icon. The 'Reset' button resets the GUI state to default, the documentation button shows this page and the usual 'Ok' and 'Cancel' buttons execute or exit the script.

2 Parameter Reference

[hide]

Target View Selection

The target view selection control allows to choose a main view of an image (either grayscale or RGB) as a target for further processing. In case of linear images the script performs a stretch for display reasons. In case the image is already auto-stretched, the available STF settings are used. Otherwise an auto-stretch will be performed. In case of auto-stretch on a color image, the 'Use linked STF stretch' checkbox will be enabled to allow selecting a linked stretch. The unlinked stretch is the default.

Target View Preview

The preview control is taken from the Pixinsight 'AnnotateImage' script and allows to zoom and scroll the image. In case the image is plate solved, the cursor on the image will show x and y coordinates in pixels and in RA and DEC coordinates in addition to the current zoom factor. The zoom factor can be adjusted using the scroll wheel on the mouse or the zoom bottoms above the image.

Target View Statistics

The target view statistics control shows some basic statistics of the chosen image. As image noise and SNR computation might be time consuming depending on the size of the image and the hardware used, SNR statistics is optionally and can be selected by the respective checkbox below. Per default the computed SNR is stored as a property in the image to avoid redundant expensive SNR computations. Thus the SNR values might become outdated in case images are altered. Therefore an additional checkbox allows to enforce the SNR recomputation.

Target View Properties

The target view properties control shows the list of properties assigned to the image. In case the output of the property key or the property value is cropped, the tool tip will show the complete value.