Hello,
so here it finally is, the script with installation instructions.
Installing the script:- the script currently works on Windows only, because the solver is available for Windows only. The sources are available on
http://www.cs.jhu.edu/~misha/Code/SMG/, and a quick glance suggests that it should not be very difficult to get this running on Linux et. al.. If you feel like it: Please port it. The script itself should be working on all platforms (currently untested, of course), and the solver has a fairly liberal license.
- As a Windows user: download the solver from
http://www.cs.jhu.edu/~misha/Code/SMG/SMG.exe.zip , and copy it into the PixInsight installation directory. Your directory tree should be like this (important parts in
bold):
C:\PCL64_161>dir
...
01.08.2010 00:56 <DIR> .
01.08.2010 00:56 <DIR> ..
01.08.2010 17:02 <DIR> bin
29.07.2010 20:04 <DIR> doc
...
01.08.2010 00:56 <DIR>
SMG.exe29.07.2010 20:04 <DIR> src
29.07.2010 20:04 227.729 uninstall.exe
...
C:\PCL64_161>dir SMG.exe
...
01.08.2010 00:56 <DIR> .
01.08.2010 00:56 <DIR> ..
25.07.2010 17:25 595.456
GradientComposite.exe25.07.2010 17:25 637.440
GradientsToImage.exe...
- download the attached script. You can run it directly from the script editor, or you can install it into PixInsight using the Script/Feature Scripts... menu entry.
- Allow PJSR to run external programs using PixInsight's Edit > Security Settings > Allow execution of commands from JavaScript scripts. This is necessary because the script calls the external solver to do the hard work...
Using the script (see attached screenshot):- The script lets you add a number of views. The images need to be compatible in size and number of color channels.
- The areas of the images that are black are considered "don't care"/transparent.
- The Operations selector lets you select between 3 modes of image integration:
-- combine by using the average pixel value
-- use the maximum pixel value
-- use priority, i.e. the pixel from the first image that is not black.
- The Apply button starts the mosaic creation
Image integration currently is a slow process (15 minutes for 2 images of 10MPixel each), while the solver itself only requires a few seconds. During integration, the script outputs "." to indicate progress. So be patient.
There is still a lot of room for improvement, more on that in the next post.
Enjoy,
Georg
PS: Look at the nice detail I found in Andromeda