Author Topic: Painting a mask with the cursor  (Read 5145 times)

Offline LX200

  • Newcomer
  • Posts: 18
Painting a mask with the cursor
« on: 2016 October 22 16:00:47 »
Has this ever been considered... an ability to "paint" over parts to the shot to create a mask?

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: Painting a mask with the cursor
« Reply #1 on: 2016 October 22 16:22:15 »

Offline LX200

  • Newcomer
  • Posts: 18
Re: Painting a mask with the cursor
« Reply #2 on: 2016 October 27 14:08:32 »
Bah... it's ridiculous to suggest that if you create a complex mask through a series of PixelMath gymnastics, that this is science, but if you paint over a nebula to isolate it for processing, this is a corruption of the highest order.

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
Re: Painting a mask with the cursor
« Reply #3 on: 2016 October 27 23:24:33 »
+1

Offline troypiggo

  • PixInsight Addict
  • ***
  • Posts: 258
Re: Painting a mask with the cursor
« Reply #4 on: 2016 October 27 23:55:36 »
You can use the CloneStamp process.  The source image does not have to be the image you're cloning onto, so use an all-white or all-black image of same size as the one you want to paint onto.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Painting a mask with the cursor
« Reply #5 on: 2016 October 28 00:25:34 »
Quote
it's ridiculous to suggest that if you create a complex mask through a series of PixelMath gymnastics, that this is science

Yes. The problem is not in how you paint the image, but in the fact that you decide to paint the image. There can be special cases where removing certain features from a mask, based on objective criteria, can be acceptable (see an example here). With these exceptions, which have to be analyzed case by case, and have to be based on a previous analysis to identify and solve specific problems, there is no reason to paint an image or a mask in astrophotography. It is not about science versus art; it is all about the documentary nature of astrophotography.

Quote
You can use the CloneStamp process

CloneStamp has been designed to fix small defects that can be identified without ambiguity, as far as there is no risk to remove significant features. It is not intended to replace brushes, pencils, lassos and similar hand painting tools. If you want to use these, there are many painting and retouching applications that are much more suitable than PixInsight to perform arbitrary manipulations.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline LX200

  • Newcomer
  • Posts: 18
Re: Painting a mask with the cursor
« Reply #6 on: 2016 October 28 08:07:43 »
Well, here is where my frustration stems from.... I have a shot of M27, and it of course shows thousands of stars through the entire field.  I wanted to tweek the color a bit on the nebula part, and add saturation, without effecting the stars....

So... I tried Luminance mask minus star mask to get a mask for just the nebula.  But I cannot, for the life of me, get a mask of the stars that does not create halos, misses stars, etc... because there are just so damn many stars of different sizes, etc.

I just find myself sitting there going "Oy, with a feathered paint brush I could do this in 7 seconds"

Offline RickS

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1298
Re: Painting a mask with the cursor
« Reply #7 on: 2016 October 28 18:45:19 »
Well, here is where my frustration stems from.... I have a shot of M27, and it of course shows thousands of stars through the entire field.  I wanted to tweek the color a bit on the nebula part, and add saturation, without effecting the stars....

So... I tried Luminance mask minus star mask to get a mask for just the nebula.  But I cannot, for the life of me, get a mask of the stars that does not create halos, misses stars, etc... because there are just so damn many stars of different sizes, etc.

I just find myself sitting there going "Oy, with a feathered paint brush I could do this in 7 seconds"

Create a clipped luminance mask, remove the stars (I typically use PixelMath "iif(star_mask>n,0,$T)" with "n" tweaked for best result) then give it a Convolution blur to remove the hard edges.  Voila!

Offline LX200

  • Newcomer
  • Posts: 18
Re: Painting a mask with the cursor
« Reply #8 on: 2016 October 28 20:48:38 »
1. I know how to make a luminance mask... How do I make it clipped?
2. What is star_mask in equation... Just a mask made with star mask tool from luminance?
3. What is $T... The image I drag pixel math operator onto...?. The luminance mask?

Offline RickS

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1298
Re: Painting a mask with the cursor
« Reply #9 on: 2016 October 28 21:17:45 »
1. I know how to make a luminance mask... How do I make it clipped?
2. What is star_mask in equation... Just a mask made with star mask tool from luminance?
3. What is $T... The image I drag pixel math operator onto...?. The luminance mask?

1. Use HistogramTransformation and move the shadows clipping point to the right
2. Just an ordinary star mask created with the StarMask process.  It doesn't need to be incredibly precise if you use the PixelMath expression I suggested
3. $T means the target image of the PixelMath process.  You should apply PixelMath to the clipped luminance mask.

Cheers,
Rick.

Offline llpastro

  • PixInsight Addict
  • ***
  • Posts: 199
    • Sonoran Dark Skies
Re: Painting a mask with the cursor
« Reply #10 on: 2016 October 29 07:51:20 »
Rick, what value of n is a good place to start?

Larry
AP 140 Refractor
SBIG ST-10XME
AP Mach 1 Mount
ATS Portable Pier
Tucson, Arizona

Offline ChoJin

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Painting a mask with the cursor
« Reply #11 on: 2016 October 29 10:20:19 »
I'd say use the readout mode with your cursor around the star halos to decide

Offline RickS

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1298
Re: Painting a mask with the cursor
« Reply #12 on: 2016 October 29 23:55:22 »
Rick, what value of n is a good place to start?

Hi Larry, the suggestion to look at readout values is a good one.  My lazy approach is just to start at 0.1 and adjust up if the holes around the stars are too big and down if they are too small.

Cheers,
Rick.

Offline llpastro

  • PixInsight Addict
  • ***
  • Posts: 199
    • Sonoran Dark Skies
Re: Painting a mask with the cursor
« Reply #13 on: 2016 October 30 07:21:51 »
Thanks to both of you for your suggestions.

Larry
AP 140 Refractor
SBIG ST-10XME
AP Mach 1 Mount
ATS Portable Pier
Tucson, Arizona

Offline jerryyyyy

  • PixInsight Old Hand
  • ****
  • Posts: 425
    • Astrobin Images
Re: Painting a mask with the cursor
« Reply #14 on: 2016 October 30 11:42:43 »
Doing some leisure reading here and never get this to work since I can never make a good star mask with 8000 or so stars in a nebula shot of the Milky Way.  Anyone have some good suggestions for basic star mask settings?
Takahashi 180ED
Astrophysics Mach1
SBIG STT-8300M and Nikon D800
PixInsight Maxim DL 6 CCDComander TheSkyX FocusMax