Revision as of 09:26, 26 September 2013 by Lock42 (talk | contribs) (Ajout de commandes)

Siril command line functions reference

This manual is a summary of the different commands you can find in Siril. As Siril is in alpha test phase, numerous commands can be added and some others can be changed. Please check the date of the page (the history link) before using.

cd

cd directory

Set the current working directory.

crop

crop x, y, width, height

Crops the current image either with the rectangle previously selected with the mouse or with the x, y, width and height parameters.

ddp

ddp level coef sigma

Performs a DDP (digital development processing) as described first by Kunihiko Okano. This implementation is the one described in IRIS. It combines a linear distribution on low levels (below level) and a non-linear on high levels. It uses a Gaussian filter of sigma sigma multiplies the resulting image by coef.

entropy

entropy filename

Computes the entropy of the file given in the parameter filename.

exit

exit

Quits the application.

fill

fill value

Fills the whole current image with pixels having the value intensity.

gauss

gauss sigma

Performs a Gaussian filter with the given sigma.

help

help

Gives the available commands.

load

load filename

Loads the fits image filename; it first attempts to load filename, then filename.fit and finally filename.fits, aborting if none of these are found. These scheme is applicable to every Siril command implying reading files. Fits headers MIPS-HI and MIPS-LO are read and their values given to the current viewing levels (the second, optional argument is reserved for a future use)

log

log

Computes and applies a logarithmic scale to the current image.

mirrorx

mirrorx

Rotates the image around a vertical axis.

mirrory

mirrory

Rotates the image around an horizontal axis.

new

new width height

Creates a new image filled with zeros with a size of width height.

nozero

nozero level

Replaces null values by level values. Useful before an idiv or fdiv operation.

offset

offset value

Adds the constant value to the current image. This constant can take a negative value. As Siril uses unsigned fit files, if the intensity of the pixel become negative its value is replaced by 0 and by 65535 (for a 16-bit file) if the pixel intensity overflows. To check the minimum and maximum intensities values, click on the Auto level button and note the low and high threshold.

save

save filename

Writes the currently displayed image to filename.fit. Fits headers MIPS-HI and MIPS-LO are added with values corresponding to the current viewing levels (the second, optional argument is reserved for a future use).

savergb

savergb filename

Same command than save.

threshlo, threshhi, thresh

These are threshold functions:

  • threshlo 40 replaces values below 40 with 40;
  • threshhi 1000 replaces values above 1000 with 1000;
  • thresh 40 1000 does both.

unsharp

unsharp sigma multi

Applies to the working image an unsharp mask with sigma sigma and coefficient multi.

visu

visu low high

Display an image with low and high as the low and high threshold.

wavelet

wavelet plan_number type

Computes the wavelet transform on plan_number plans using linear (type=1) or bspline (type=2) version of the 'a trous' algorithm. The result is stored in a file as a structure containing the planes, ready for weighted reconstruction with wrecons.

wrecons

wrecons c1 c2 ... cn

Reconstructs to current image from the planes previously computed with waveletand weighted with coefficients c1, c2, ..., cn according to the number of planes used for wavelet transform