Author Topic: Processing 240 images at once  (Read 3827 times)

Offline dbock

  • Newcomer
  • Posts: 11
Processing 240 images at once
« on: 2017 April 10 11:46:18 »
I'm interested in performing the same processes on multiple files.
For example I have 240 images of a comet and merely wish to do a couple of processes on all 240 at once.
How do I do that in PI?

Processes. AutomaticBackgroundExtraction would be the primary function across all 240 images.
Since this one process is hands off, I would think the ability to do this across all 240 images would be a simple script. Correct?
If that is the case, I need to learn how to do that.
Any help?

If I could do a couple of other processes and have them apply to all that would be useful as well.
Northern Cross Observatory
Michigan, USA

GSO 10" f/8 RC
Losmandy G11/Gemini 2
ZWO asi071MC cooled camera
Lodestarx2 guide camera
On Axis Guiding system

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline dbock

  • Newcomer
  • Posts: 11
Re: Processing 240 images at once
« Reply #2 on: 2017 April 10 12:28:49 »
Excellent. Thank you.
Northern Cross Observatory
Michigan, USA

GSO 10" f/8 RC
Losmandy G11/Gemini 2
ZWO asi071MC cooled camera
Lodestarx2 guide camera
On Axis Guiding system

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Processing 240 images at once
« Reply #3 on: 2017 April 10 12:32:38 »
As Carlos suggests - you shouldn't need to 'script' anything (manually).

If each image os to have the same process, or series of processes, applied to it then apply what is needed to the first image in your group. If you then look at the HistoryExplorer for that image, you will be able to grab the 'ProcessInstance' icon (the little blue left-pointing triangle) at the bottom-left of the HistoryExplorer window and drag and drop this onto your WorkSpace background.

If you now double-click this new ProcessContainer icon, the full sequence of steps will be presented to you. If you are happy with the sequence, then you are half-way there.

Now you need an ImageContainer process, loaded with the list of images that you need to process (don't include the image that you have already processed).

Finally - and slightly counter-intuitively - you need to drag the little blue triangle icon from the ProcessContainer over to the bottom line of the ImageContainer process. And, you should now see all of your images being processed.

However - what I have never tried is to actually use this method to 'save' each processed image, automatically, at the end of each process run!
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline dbock

  • Newcomer
  • Posts: 11
Re: Processing 240 images at once
« Reply #4 on: 2017 April 10 12:36:25 »
Thanks. I'll experiment with this. I take a lot of comet sequences in a night, and wanted to clean up the raw images for all of them, the same way, before rendering a video.
Northern Cross Observatory
Michigan, USA

GSO 10" f/8 RC
Losmandy G11/Gemini 2
ZWO asi071MC cooled camera
Lodestarx2 guide camera
On Axis Guiding system

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: Processing 240 images at once
« Reply #5 on: 2017 April 10 12:59:27 »
I used a process container for 864 subs during the Perseids in 2015. For my images I used ABE/Autohistogram/Curves. Real basic stuff. Then I used the Blink tool to make the video. Using the parameters for ffmpeg I was even able to resize the video within Blink.

https://drive.google.com/file/d/0B13r3kYqTf8NVGR1X0xCNG83QVE/view?usp=sharing

Mike


Offline dbock

  • Newcomer
  • Posts: 11
Re: Processing 240 images at once
« Reply #6 on: 2017 April 10 13:10:48 »
Yes, those are the 3 processes I use.
I just ran the ABE on 240 images, provided an output directory, but the ABE files weren't saved there.
They're currently in the active window, but not on disk.
It appears the sequence was saved, but they look the same as the raw images.
The on screen ABE files are what I want for the next step.
If I select Views to add to the image container, the ABE along with the backgrounds are listed.
So I'm figuring I have to add all the ABE's manually, and exclude the background ones.


Northern Cross Observatory
Michigan, USA

GSO 10" f/8 RC
Losmandy G11/Gemini 2
ZWO asi071MC cooled camera
Lodestarx2 guide camera
On Axis Guiding system

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Processing 240 images at once
« Reply #7 on: 2017 April 10 14:01:22 »
you need to set up ABE like so:

discard background model
replace target image

these are checkboxes in the "target image correction" pane

rob

Offline dbock

  • Newcomer
  • Posts: 11
Re: Processing 240 images at once
« Reply #8 on: 2017 April 10 14:13:35 »
Thanks. I'm really exercising my computer right now. All 4 drives are flying with pagefile writes to manage all this data.
I have 64GB of ram, and it is fully utilize as I finish the curve transformation.
I think if I had used your suggestion, I'd have about 1/3 of the memory requirements.
It appears to be running through them though.

Thanks again for the tips.
Northern Cross Observatory
Michigan, USA

GSO 10" f/8 RC
Losmandy G11/Gemini 2
ZWO asi071MC cooled camera
Lodestarx2 guide camera
On Axis Guiding system

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Processing 240 images at once
« Reply #9 on: 2017 April 10 15:14:11 »
Remember to let us see the results of all your efforts!
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline dbock

  • Newcomer
  • Posts: 11
Re: Processing 240 images at once
« Reply #10 on: 2017 April 12 17:43:03 »
I finally got this done tonight. Given each frame is a single 30 second shot, and I didn't do dark frames, its a bit noisy.
However, I did learn how to run 4 or 5 processes on all 240 images, 1 process per pass of 240 at a time.

Comet 41p from April 2, 2017
240 x 30 second subs
ZWO asi071MC camera
10" f/8 RC prime focus
Processed in PixInsight 1.8
Rendered in Vegas Movie Studio HD 11

https://youtu.be/6UK-g_mS9qg
Northern Cross Observatory
Michigan, USA

GSO 10" f/8 RC
Losmandy G11/Gemini 2
ZWO asi071MC cooled camera
Lodestarx2 guide camera
On Axis Guiding system

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: Processing 240 images at once
« Reply #11 on: 2017 April 12 20:11:42 »
Very nicely done.   :smiley:


Mike

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Processing 240 images at once
« Reply #12 on: 2017 April 13 05:07:27 »
Well done Doug - a result well worth all the effort that you put in to it!
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline dbock

  • Newcomer
  • Posts: 11
Re: Processing 240 images at once
« Reply #13 on: 2017 April 13 05:48:39 »
I ended up working on this 4 times, since resources were being gouged, and I didn't understand a few things along the way.
I've figured out how to do this now, 1 step at a time, and limit the computer resource usage to a minimum.
It still eats up about 250 GB of disk space to accomplish this, 50GB per pass.
Since each pass creates new files, I had to recognize that the image container from the previous pass had to be removed, and a new one created with the last passes results. Plus, I then could remove the 50 GB's of files from the previous pass input, to free up storage.
I wasn't going to run out of storage with 4TB's, but I realized the interim steps weren't needed after the 3rd pass, and just removed the previous ones.

The final video was only 180 MB in MP4 format, before uploading to YouTube.
Northern Cross Observatory
Michigan, USA

GSO 10" f/8 RC
Losmandy G11/Gemini 2
ZWO asi071MC cooled camera
Lodestarx2 guide camera
On Axis Guiding system

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: Processing 240 images at once
« Reply #14 on: 2017 April 13 08:19:45 »
You reminded me of the one thing I did for my images. When I first started this I did a short test of 50 images and I realized the resources and speed were going to be a problem for 800+ images. Since the end video was going to be a much lower resolution then the original images and the images were only 6 second exposures I decided the first step in the process container was to to use the SampleFormatConversion tool and set every image to 8-bit integer as the first step. Not ideal but ..



Mike