is there a way to batch pixelmath?

prefetch

Active member
i need to run pixelmath on about 120 images to correct a recurring issue i have with my CCD.

is there a way to run pixelmath on a directory or somehow get pixelmath to run on a list of files?
 
You can always build it into a script, is it a monochrome image?
What is the calculation you want to do?
 
Last edited:
For simple cases there is no need for a script. Create an image container, load the images to be processed, set the output directory and input the new file name, e.g. "&filename;_mod.xisf" into the 'Output template' field.

Open PixelMath, input the expression. ($T is the placeholder for the currently processed image in the image container.)

Drag the blue triangle icon of the image container (New Image Container Instance) to the gray bar at the bottom of the PixelMath window.

Note that this will only succeed when the expression is the very same for all images in the image container. So there are limitations.

Bernd
 
Thanks Bernd, I don't use image containers which is why I didn't suggest it, old habits die hard I'm afraid LOL
 
Last edited:
thanks bernd - that worked perfectly!

also, dave, yes they are monochrome images and i'm just "fixing" some frames from a KAF-50100 CCD. it's a "split" CCD so one side is uniformly different than the other side. for some reason calibration is not fixing this problem. from what i've researched, this issue has come up with other owners of this CCD, and the pixelmath fix is a quick way to solve the problem. i just needed a way to do it in bulk.
 
that is an interesting sensor - it is two sensors "glued" together, right?

yep, two sensors 'glued' together.

bernd, i'll try the overscan option and see if it helps. if it does, then that'll be easier, but this batch pixelmath trick works perfectly.
 
I tried this and it works, sort of. After I dragged the triangle onto the pixelmath bar it opened all 40 pictures in the workspace and I can see that it did the math. But the images in the output directory I've specified (different one than the source) are all not modified, they still look the same as the original ones. What am I missing?
 
in PixelMath make sure "replace target image" is selected. otherwise PM makes a new image with the modifications and puts it in the workspace. generally speaking when using ImageContainer the process being applied has to put it's result in the input image for ImageContainer to work right.
 
Oh, I was so focused on the container settings that I totally forgot about the pixelmath setting. Thank you very much, it works now, this is an awesome feature ;).
 
Hi @prefetch

Somebody pointed me to this thread as I am having the exact same issue with the 50100 chip...

It seems as if you got your calibration such that there is a constant quotient between all your images. For me, there is quiet a range, i.e. I can't correct all images by the same factor. How did you do your calibration?

Thanks
Mark
 
Back
Top