Author Topic: how can I script this?  (Read 6247 times)

Offline dmdimon

  • Newcomer
  • Posts: 3
how can I script this?
« on: 2012 January 12 13:15:47 »
I want to script "sliding window" multi-image processing like this:

in some dialog window

set source catalog (there will be N source images)
set destination catalog
set number of images to co-process (M, M<N)

than

took images 1,2,3, ... , M from source catalog
do some processing on them
write result (single image with name say 0001.fit) to destination catalog
took images 2,3, ... , M, M+1 from source catalog
do some processing on them
write result (single image with name 0002.fit) to destination catalog
.....
and so on until all sequence in source catalog will be processed

Any help and coding examples will be greatly appreciated
Any possible alternate techniques on "sliding window" accepted  ;)
thanks in advance

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 274
  • Resistance is futile.
    • Astronomí­a Sur
Re: how can I script this?
« Reply #1 on: 2012 January 12 16:40:13 »
Maybe my script code will be useful to start:

http://pixinsight.com/forum/index.php?topic=2122.msg13755#msg13755

Probably not the best, but can give you an idea.

Greetings,

Enzo.

Offline dmdimon

  • Newcomer
  • Posts: 3
Re: how can I script this?
« Reply #2 on: 2012 January 13 00:42:17 »
thanks, I'll take a careful look at your script