Author Topic: PixelMath Combine by Geometry  (Read 2796 times)

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
PixelMath Combine by Geometry
« on: 2015 January 24 13:12:48 »
I'm trying to find an easy way using PixelMath only to combine images of like geometry by height or width. I don't like going outside of PixInsight to do tasks like this. Currently I'm using DynamicCrop, RangeMask and then PixelMath. Doing a single 1x2 image is ok this way but if I want to do 2x2 or 1x3 it gets a bit time consuming. I use this for daytime and astro shots. I'll attach to small examples.

Thanks

Mike

Offline oldwexi

  • PixInsight Guru
  • ****
  • Posts: 627
    • Astronomy Pages G.W.
Re: PixelMath Combine by Geometry
« Reply #1 on: 2015 January 24 15:08:32 »
Hallo MIke!
This is easy to do with PixelMath.

Step 1
iif(x()>(width($T)/1),pixel($T,x(),y()),pixel($T,width($T)-x(),y()))
Set Image id to     b
Set Image width to the double value of the right Image width

drag the triangle on the right image.

Step 2
iif(x()>(width($T)/1),pixel(b,width(b)-x(),y()),pixel($T,x(),y()))
Set Image id to     double
Set Image width to the double value of the left Image width

drag the triangle on the left image.

Thats it. Double contains your Images side by side.

Gerald
P.S.: There is also a working possibility with the Script "ImageInsert", but thats not so impressive complex....

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: PixelMath Combine by Geometry
« Reply #2 on: 2015 January 24 16:04:55 »
Gerald,

Thanks so much. That is what I was looking for. I just finished one collage of different images of my new pier installation. This one had different size images so I used the Resample tool along with the others before. Doing it the hard way it helped teach me a little more.

http://www.astrobin.com/150648/B/

Thanks Again!

Mike