PixInsight Forum

PixInsight => General => Topic started by: tingting44 on 2015 February 21 01:12:02

Title: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 21 01:12:02
Hi guys im having real trouble getting a useable mask from my L & star mask to create a mask from pixel math that protects my stars and background, if any one can shed any light on to why i am getting a horrible combined mask from pixel math that would be brilliant, thank you kindly

here is a screen shot (top left stack im working on, top right - star mask - bottom right Lum mask)
(https://farm8.staticflickr.com/7359/15979449743_74414db97d_b.jpg) (https://flic.kr/p/qm3RGc)pixel math (https://flic.kr/p/qm3RGc) by tingting44 (https://www.flickr.com/people/79593268@N05/), on Flickr

and here is the result from pixel math. i type into pixel math under the RGB/k...........    L_mask - star_mask then drag pixel math onto my Lum mask which gives me this :(
(https://farm9.staticflickr.com/8677/16598044041_ec3374a405_b.jpg) (https://flic.kr/p/rhHje8)pixel math mask from L & Star mask (https://flic.kr/p/rhHje8) by tingting44 (https://www.flickr.com/people/79593268@N05/), on Flickr

which is just horrid and i do not know why
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: Juan Conejero on 2015 February 21 01:45:00
It's difficult to know what happens without the images. Can you upload star_mask and L_mask?
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 21 02:06:14
Thank you for your quick reply Juan!

of course i can mate, ill save the 2 masks now and upload them to dropbox then add the link here :)

will JPEG's be ok or do you need FITS or TIFF mate

Thank you
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: Juan Conejero on 2015 February 21 02:18:31
Much better if you upload FITS files. JPEG definitely won't work because of compression artifacts and 8-bit encoding.
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 21 02:19:05
no problem, doing it now Juan :)

Thank you

edit, just uploading to dropbox now, says one hour, ive included my master stack also incase you need that also
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 21 03:11:33
here is the link to my FITS Juan :)

https://www.dropbox.com/sh/opqs72ueoo5c60z/AACZHJgBI3ei125aY8FdrtLea?dl=0
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: cdesselles on 2015 February 21 13:23:16
TingTing44, May I have your permission to download this also?  I'd like to play with it a bit myself.
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: Alejandro Tombolini on 2015 February 21 16:55:45
Hi, In this (http://pixinsight.com.ar/en/info/processing-examples/3/ngc-253-sculptor-galaxy.html) processing example you have a second option. There, I used RangeSelection and StarMask to generate one mask to protect background and stars.
However, I think that in your Andromeda would be better a mask that cover more accurately the stars over the galaxy.
Saludos, Alejandro.
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: Alejandro Tombolini on 2015 February 21 20:24:08
Hi TingTing44, I created a quick example (http://pixinsight.com.ar/en/info/processing-examples/35/mask-background-stars.html). The information on the starmask obtained with Starmask tool is enhanced with a Structure_map from StarAlignment to include in the mask the stars that are over the galaxy.
hope it helps.

Saludos,
Alejandro.
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 22 02:37:01
Morning cdesselles, of course you can, let me know how you get on :)

Morning Alejandro..... wow im quite honoured that you have used my images on a tutorial, it looks very excellent! i will be going over it fully probably tomorrow, as i didnt get in till gone 4am this morning, was at my dark site for a good session on M81/M82 and it looks like i have some very nice data :)

ill let you know how i get on, it is very cool to see my own images in a tutorial :)

all the best and speak soon, ill let you know how i get on

Martin
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 23 03:01:58
hmm i followed your tutorial to the letter
http://pixinsight.com.ar/en/info/processing-examples/35/mask-background-stars.html

but for some reason its not coming out the same as yours :( is there anything else you done to the master image before extracting the Lum and star masks as the stars look smaller in the master stack compared to mine? (or it might just be me)

here are the masks i came up with following the tutorial above to exactly the same settings...... :(
https://www.dropbox.com/sh/ob5hr0rgyrcqcvj/AACy70SwU0b6gYNg_Let2W3ta?dl=0

again thank you for taking the time to help little old me :)

edit, i just tried downloading the xpsm icons on the tutorial at the top of the page but PI is giving me an error message saying "failed"
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: Alejandro Tombolini on 2015 February 23 03:34:37
Hi Martin,
I did not change anything on the image, just downloaded it.

I am not with PixInsight now to check your masks, I will take a look later.

That is extrange about downloading the file, seem to work for me. I am going to load the icons here.

Saludos, Alejandro.
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 23 03:42:21
ok thank you kindly Alejandro :)
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: cdesselles on 2015 February 23 18:57:39
Thanks for the permission TingTing.  I'm going to have me some fun!   :D
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 23 20:17:33
I hope you do, if you get any decent results please feel free to post them up here :)
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: Alejandro Tombolini on 2015 February 23 20:28:53
Hi Martin, I saw your masks. I believe that could happen two things.

1) You did not use Truncation on starmask
2) You did not add structure_map to starmask before substracting from L_mask

Is that possible?

Have you managed to test the icons?

Saludos,
Alejandro.
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 23 20:31:45
Morning Alejandro

im at work at the moment my friend, Im pretty sure I used Trunction on the star mask, but it is possible I did not add structure_map to starmask before subtracting, ill go over it a few times when I get in later on to make sure as it is the 1st time I used structure map so it is likely I could have done it wrong

I did test the icons again last night and got the same message "failed"
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 24 07:46:18
just tested the icons again and im getting this message now...

"Start tag expected. (line=1,column=1)

just going to go over the mask tutorial again now...
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: Alejandro Tombolini on 2015 February 24 08:35:38
Hi Martin,
"Start tag expected. (line=1,column=1)
That is very strange. I don't know what it means. Lets check again.
 
Are you able to download the "Andromeda.xpsm.zip (http://pixinsight.com.ar/files/Andromeda.xpsm.zip)" to your computer?
If so, then you have to unzip it in a folder and then load/merge (http://pixinsight.com.ar/en/docs/44/pixinsight-loadmerge-process-icons.html) the icons in PixInsight. They will be located in Workspace01 (http://pixinsight.com.ar/en/docs/9/pixinsight-change-workspace.html)

Are you able to see the icons in your workspace as it is shown here (http://pixinsight.com.ar/img/contents/processing_examples/Andromeda_06.jpg)?

You can also attach a print screen of what you see to have a better idea.

Saludos, Alejandro.
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 24 08:44:10
righty...

yes im able to download the zip file

i then load the process icon Andromeda.xpsm and it gives me this
(https://farm9.staticflickr.com/8602/16013508754_2ef10e85e4_b.jpg) (https://flic.kr/p/qp4qfw)can not load process icons (https://flic.kr/p/qp4qfw) by tingting44 (https://www.flickr.com/people/79593268@N05/), on Flickr


no i can not see any of the process icons Alejandro :(

edit, i have no problems loading any of my other saved process icons
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: Alejandro Tombolini on 2015 February 24 09:34:34
mmmh, this exceeds my knowledge ... Juan?
I tried downloading the icons and worked well. Someone else could check?

In the mean time Martin, try to follow the parameters in each screen shot to see if you can reproduce the steps.

Let me know if it works

Saludos, Alejandro.
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 24 09:37:11
thank you for trying tho Alejandro, and for taking your time to help me

ill just follow the parameters in each screen shot again and reproduce the steps, going to try now if this child of mine ever gives me a break lol :(

ill let you know how i get on again mate, thank you kindly,

yes if anyone reading this could also try to download the process icons and see if they work for you, would be great and let us know :)

speak soon
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 24 09:59:11
one thing Alejandro, do you create the star mask from the L_mask or the master_stack?
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 24 10:14:59
Alejandro i have done it now lol, i must have missed something last time, but i now have a mask looking the same as yours my friend :) thanks you ever so much for taking the time to help me!!!

(https://farm9.staticflickr.com/8669/16016535503_43edf9b3fd_b.jpg) (https://flic.kr/p/qpjVZR)jobs a goodun (https://flic.kr/p/qpjVZR) by tingting44 (https://www.flickr.com/people/79593268@N05/), on Flickr
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: Alejandro Tombolini on 2015 February 24 10:25:12
That is perfect!! :)
Title: Re: Need help with my Pixel Math mask pleaseeee
Post by: tingting44 on 2015 February 24 10:26:54
That is perfect!! :)

 ;) ;) ;)

could not have done it without you  ::)