Problems following Adam Block's use of Pixel Math

I am trying to use a Youtube video that Adam Block published a couple of years ago to use pixel math the remove reflected images from an Oiii image.  The youtube video said a Pixel math image could be downloaded, but I can't find it.  I registered with Adam Block, but can't find anything about the process he talked about in the Youtube video.  I copied the pixel math expression he presented but cannot get it to work.  I keep getting an error message saying "unresolved operator."

Below is the expression I copied, but can't figure out what I am doing wrong:

x=x();

y=y();

x0=370

y0=2190

width=1675

height=1315

iif(inrect(x0,y0,width,height),pixel(Ha_DBE->Preview01,x-x0,y-y0),$T)

Symbols: x,y,x0,y0,width,height


Can anyone help me with this.  I have good data, but need to remove some reflected distortions from my Oiii data.


Thanks,

Jim

Comments

  • Hi James,

    A couple of things.
    Regarding the PixelMath expression- a screenshot would be helpful. 
    (Did you actually put the symbols in the symbols panel? You did not mention this.)

    When I published these and other expressions... no scripts really did the trick. However, I later *convinced* others to create scripts to perform these tasks with more ease.

    You should still figure out why the PixelMath isn't working...I can help with that.

    But to solve your issue...did you see:
    *and*

    The substitute script does the same thing as the pixel math..and it is easier. I highly recommend learning how to use this script.

    You might also enjoy this video:

    -the Blockhead

  • Blockhead,
    Thanks so much for your help.  I downloaded the substitute script and it has been very helpful.  I've also studied Adam's scattered-light articles and found them also very helpful, but I think I will need to use them in a way that Adam didn't anticipate. 

    My problem is star reflections appear strongly in my Oiii images, less strongly in my Sii images, but the reflections are not all in the same location.  About half of my subs have the reflections in one location, and the other half have the reflections in a different location.  My Ha subs are clean of reflections. I tried using Adams article to substitute part of my clean Ha integration into the Oiii integration,
    but the Ha nebulousity overwhelms the weak Oiii subs.

    Because the reflections are in different groups I tried using Adams scattered light article to substitute previews from one Oiii group to the other, and it seems to work fairly well.  Attached is a jpeg showing an integrated image showing the reflections.  Reflections in the red circles are in about half the subs, and reflections in the green circles are in about the other half of subs.  The other attached image is my "fixed" image of my Oiii integration.  The images are crude, because I am mostly testing to see if this will work.

    I have a similar problem with my Sii subs, but think the same process will work to clean it up as well.

    Thanks again for the substitution script, it removed a roadblock I've been struggling with.

    Regards,
    Jim


    Oiii-reflections.jpg
    6252 x 4176 - 5M
    Oiii-Fixed-Fixed.jpg
    6218 x 4140 - 2M
Sign In or Register to comment.