Author Topic: applying multiple masks  (Read 6420 times)

Offline dhalliday

  • PixInsight Old Hand
  • ****
  • Posts: 307
    • on Flickr
applying multiple masks
« on: 2009 October 19 14:31:31 »
I am loving my Pix...(!!!)
Recently I was processing M33;
http://www.flickr.com/photos/daveh56/4026715021/sizes/l/

and trying to mask the core,AND the background, at the same time...(with two seperate L masks...)
Maybe this is a crude way to adjust the histo :'(...but this is how I have been doing it.
I tried to "drop" both masks on the image.....but it did not seem to work...
Is this "multiple masking" possible..? :D

any other suggestions on this image...I am all ears

Dave
Dave Halliday
8" Newtonian/Vixen VC200L/ TV 101,etc etc
SSAG/EQ6
CGE Pro
SBIG ST2K,ST10XME

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Re: applying multiple masks
« Reply #1 on: 2009 October 19 14:46:29 »
Hi Dave,

The only way I would know how to do it would be to add the two masks together in PixelMath or use the max function in PixelMath. Either way you create just one mask with the features of both in....then apply the one mask. Maybe someone has a better way?

Cheers
         Simon

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: applying multiple masks
« Reply #2 on: 2009 October 19 16:52:25 »
Not better, but another option is to multiply both masks to create one. Or use the "Screen" operator: 1-(1-Mask1)*(1-Mask2)
Regards,

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

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: applying multiple masks
« Reply #3 on: 2009 October 20 09:24:47 »
These pixel math operations is difficult for us "mouse only guys". 
Remembering the syntax is too hard, I am running low on gray matter. :laugh:
Perhaps Juan could and these as preset operations to "layers" when he gets around to adding vector graphics?

Max


Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: applying multiple masks
« Reply #4 on: 2009 October 20 10:29:13 »
Hi Max,

Yes - this seems to be a good 'precursor' to 'layers'.

However, all you need to do is enter the PixMath formula(e) once - and then just drag-drop the Process Icon onto a PI workspace. Once there, you can save it to disk, having named it something useful first.

This will allow you to reload it in the future (perhaps 'Merging' it with existing Workspace icons) - making it really easy to re-use.

It also does 'train your brain', which is sometimes as much fun as just 'pointing and clicking' - and you will also get a feel for what Juan will eventually, no doubt, bring to PI by way of 'layers'.

Cheers,
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 h0ughy

  • PixInsight Addict
  • ***
  • Posts: 226
Re: applying multiple masks
« Reply #5 on: 2009 October 20 20:01:02 »
These pixel math operations is difficult for us "mouse only guys". 
Remembering the syntax is too hard, I am running low on gray matter. :laugh:
Perhaps Juan could and these as preset operations to "layers" when he gets around to adding vector graphics?

Max


LOL i couldnt agree more, though i am very interested in this process
Doghouse Observatory

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: applying multiple masks
« Reply #6 on: 2009 October 21 06:13:36 »
A proposal for multiple masks (mainly for Juan, but suggestions are wellcome... release 1.6 or higher):

The new mask system should allow to add an ilimited amount of images that will act as masks. These images should be operated in some of predefined ways, all the same operator (for more customized options, standard PixelMath procedures should be made to create the composite mask), to create a composite mask that is stored as a temporary file.
This composite mask should be linked to all the operand images (individual masks) and track if there has been any change to them. If so, next time a process is applied to the masked image, the composite mask should be recalculated. If there is no change to the individual masks, no recalculation is needed, of course.

To operate the images we should use these standard procedures: Min, Max, Median, Multiply and Screen.


What do you think?
Regards,

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

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Re: applying multiple masks
« Reply #7 on: 2009 October 21 06:53:17 »
Sounds like a very useful feature Carlos. I know I would use it.

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: applying multiple masks
« Reply #8 on: 2009 October 21 08:32:19 »
That would be great Carlos.
A simple way of doing composite to images operations would be great. That is... Max Min, ave etc.
Perhaps weighting like 80% image A and 20% B too. ( I know we have other modules that do this to now).
You might consider a drag and drop approach.

Max

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: applying multiple masks
« Reply #9 on: 2009 October 21 09:08:32 »
Weighting complicates things a lot ;)
Regards,

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