Author Topic: How to batch extract channels and recombine  (Read 2023 times)

Offline Phil Hart

  • Newcomer
  • Posts: 10
How to batch extract channels and recombine
« on: 2018 August 03 16:22:50 »
I'm trying to use PI to batch process an eclipse timelapse (2000 files) and want to do some work on sequences of R, G, B channels of the original files.

I know the basics of applying a Process Icon to an Image Container for batch processing (a great feature of PI).

In this case, if I apply the channel extraction process to a file I get three new images created. When applied as a batch, all of these newly created files remain open as the batch proceeds. Well before I have 6000 new images open something is going to crash. So how do I include a "close all images" command in the process icon to keep closing the three new images created after each file in the sequence is extracted into its R/G/B channels?

Also in reverse, how do I point to the three separate series of R/G/B files when doing the channel recombination (after de-flicker and other processing of each channel series in other software)?

thanks
Phil

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: How to batch extract channels and recombine
« Reply #1 on: 2018 August 03 17:34:14 »
i think for this reason the BatchChannelExtraction script exists... its not clear to me from your question whether or not you are splitting channels and doing more processing or just splitting channels.

not sure about recombination.

rob

Offline Phil Hart

  • Newcomer
  • Posts: 10
Re: How to batch extract channels and recombine
« Reply #2 on: 2018 August 03 17:42:33 »
i think for this reason the BatchChannelExtraction script exists... its not clear to me from your question whether or not you are splitting channels and doing more processing or just splitting channels.

not sure about recombination.

rob

Ah.. thanks Rob! Batch Channel Extraction script looks obvious and perfect. Pity my searches didn't turn up that result.

I am planning to use After Effects and the Granite Bay Software Deflicker plug-in to deflicker the R/G/B channels separately. Then I need to work out how to batch recombine the channels after doing that. Possibly After Effects can manage that part, but great if there was a way to do it in PI.

thanks
Phil


Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: How to batch extract channels and recombine
« Reply #3 on: 2018 August 03 22:17:54 »
deflickering is some kind frame-to-frame morphing? i think you'll have to do that in some external tool unless you want to write some code...

rob

Offline Cosmick

  • Member
  • *
  • Posts: 52
Re: How to batch extract channels and recombine
« Reply #4 on: 2018 August 04 19:09:21 »
deflickering is some kind frame-to-frame morphing?

More like Frame Adaptation (Linear Fit) in StarAlignment - so there is a smooth transition between frame brightness when run as a timelapse.
Clear Skies

Mick

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: How to batch extract channels and recombine
« Reply #5 on: 2018 August 04 21:19:12 »
ah, ok. thanks

rob