Author Topic: StarAlignment from Javascript  (Read 4628 times)

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
StarAlignment from Javascript
« on: 2010 April 14 22:47:56 »
Hello,
I am working on a script to combine the images form LightBucket easy imaging.
For this I would liek to automate StarAlignment. Unfortunately I have not found a way to generate the Javascript to use as a model, as  this is a global process (it does not appear in the history browser).

Do somebody have an example or an idea on how to generate the javascript that I can then edit?

-- bitli

Offline Silvercup

  • PixInsight Addict
  • ***
  • Posts: 187
Re: StarAlignment from Javascript
« Reply #1 on: 2010 April 15 06:51:16 »
Hi Bitli:

Just drag the blue triangle on a process container and you get the js sorce code. For StarAlignment I got this:

Code: [Select]
var p = new StarAlignment;
with ( p )
{
   structureLayers = 5;
   noiseLayers = 1;
   hotPixelFilterRadius = 1;
   sensitivity = 0.100;
   peakResponse = 0.80;
   maxStarDistortion = 0.500;
   invert = false;
   matcherTolerance = 0.0030;
   ransacTolerance = 2.00;
   ransacMaxIterations = 2000;
   ransacMaximizeInliers = 1.00;
   ransacMaximizeOverlapping = 1.00;
   ransacMaximizeRegularity = 1.00;
   ransacMinimizeError = 1.00;
   maxStars = 0;
   trianglesPerStar = 40;
   restrictToPreviews = true;
   intersection = MosaicOnly;
   useBrightnessRelations = true;
   useScaleDifferences = true;
   scaleTolerance = 0.010;
   referenceImage = "";
   referenceIsFile = false;
   targets = [ // enabled, isFile, image
      [true, true, "C:/image1.fit"],
      [true, true, "C:/image2.fit"],
      [true, true, "C:/image3.fit"]         //and so on...
   ];
   mode = RegisterMatch;
   generateMasks = false;
   frameAdaptation = false;
   useSurfaceSplines = false;
   linearClampingThreshold = 0.30;
   outputDirectory = "";
   outputExtension = ".fit";
   outputPrefix = "";
   outputPostfix = "_r";
   maskPostfix = "_m";
   outputSampleFormat = SameAsTarget;
   overwriteExistingFiles = false;
   onError = Continue;
}


Best. Silvercup