Author Topic: Batch DBE Questions  (Read 3011 times)

Offline BenKolt

  • Newcomer
  • Posts: 8
Batch DBE Questions
« on: 2018 September 04 14:51:27 »
Greetings!

At times I have used ABE on a group of files, mainly to perform low order gradient removal such as order 1, maybe 2.  To do this I open the AutomaticBackgroundExtraction, set order to, say, 1, click to discard generating the background model image and check to replace the current file.  I make this into a process icon and leave it on the workspace.  I then make an ImageContainer of the files to which I wish to apply the ABE process, usually adding a prefix to the file names such as ABE_ and setting my output directory.  I make an icon of this.  Now I can simply drag and drop the ABE icon on the ImageContainer icon, and the background is removed sequentially on each input image, with its corresponding output image save to the directory.  A unique background is subtracted from each image.

My question is how could I perhaps do this using DBE?  I am not at home currently, otherwise I'd try it out for myself and see what happened, but I wanted to post the question here to see if others have a way to apply the DBE process to a group of images quickly.  If I defined a few points around the image, say, one in each corner, this would in principle subtract a linear function of (x,y) from the image, right?  If I made a process icon of this process, could I apply it to an ImageContainer list of image files?  Would a unique linear model then be created for each file, or would this simply freeze the original model that I created and apply it to each image?

Thank you for considering my questions.  Ultimately I'll just try it out for myself, but I wanted to at least ask since it will be some time before I have opportunity to run my own tests.

Best Regards,
Ben


Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Batch DBE Questions
« Reply #1 on: 2018 September 04 16:11:36 »
short answer... DBE does not work with ImageContainer.

i think what happens is that the math is all done at the original runtime and the data needed to generate the background is stored in the process icon, so every image in the ImageContainer gets the same background subtracted from it.

rob

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: Batch DBE Questions
« Reply #2 on: 2018 September 04 16:20:54 »
Just thought I stick my head in(where it doesn't belong) but could one image be processed with DBE or ABE and than use that as the reference for LocalNormalization. Then run LocalNormalization on the rest of the images?

I realized you might not be doing this to images that are aligned to each other????

Mike

Offline BenKolt

  • Newcomer
  • Posts: 8
Re: Batch DBE Questions
« Reply #3 on: 2018 September 04 19:08:48 »
Thanks for the inputs.  Yeah, I just tried it and figured it out that it doesn't work that way.

I was hoping to perform prior to registration, although I have some other choices as well on what I wish to do.

Local normalization of a single prepared subframe is certainly one way to go for the purpose of combining the images, but I wanted to also prepare individual frames for animation or other purposes as well.  If I come up with a nice workflow, I'll let you know.

Ben