PixInsight Forum (historical)
PixInsight => General => Off-topic => Topic started by: Stathis on 2010 August 11 16:36:09
-
Hello! I have been using PI since 1.5 version and i like it very much, i do almost everything with it. Today while trying to correct some star elongation on a part of the image (due to a tilt on the focuser) i saw that i couldn't do that because i cannot find a way to process just a part. When i apply deconvolution to fix the star elongation, on the one side it's fixed, but on the other side the round stars are being elongated. What i thought was to crop that part of the image in PS, load it to Pix, fix it and then put it back toghether again in PS. But until i get a new focuser i will have to do that for every image. I was wondering if anyone has any advice.
-
You could create a simple file in PS that is white in the area where you want deconv to be active. Then load that file in PI and use as a mask.
-
Thanx Nocturnal! so essentially if i want to process half the image, then i will create 1 half black and the other half will be white where the changes will be applied. Did i get it right?
-
Yes. Be carefull with the transitions on the mask, or you may create some ugly artifacts.
A much better solution would be a non-isotropic deconvolution, but such tool has not been designed yet :P
-
Or an 'De-Mosaic' function to turn a single image into 2, 3, 4 etc. images and then reassemble with the standard Mosaic function. 8)
Charles
-
Ok, encountered a problem. Can i have 2 masks at the same time in PI? Because when i apply the mask that i made in PS there is no star mask, so the the part that i deconvolve get's all messed up. Then if i apply a star mask only, i am back at square one, it does it to the whole image. So, how can i create a mask that has the black and white image from PS and a star mask? I've tried putting the star mask as a mask to the B&W image, and then applied that to the image, but didnt work. Ít was worth the try though ;D
-
No, you can't. You may merge both masks with PixelMath, and create a new one. One option is to use the Max(Image01,Image02) or Min(idem) function. Also, you may use the "Screen" function: ~(~Image01*~Image02) or a direct multiplication. The choice will depend on how you want to merge them.
-
Well i did it in another way. I saved the star mask from PI to desktop, opened it in PS, cut the part that i wanted and pasted it to the B&W image at the white area. Then used this as a single mask in PI and it worked. :) I didn't think it would cause the star mask backround is almost black, and i thought it would allow deconv. to that area also, but it didn't. I have to learn pixel math in PI since i don't know anything about it, but this forum has lot's of info. Thx guys.
-
Ok, encountered a problem. Can i have 2 masks at the same time in PI?
I think it's possible to make a mask inside a mask image, maybe that helps. Please correct me if I'm wrong.
Enzo.
-
Yes, a mask that acts as a mask may have a mask, but that "second" mask will not work over the first image.
-
Yes, a mask that acts as a mask may have a mask, but that "second" mask will not work over the first image.
A important point. Thanks Carlos!.
-
Hi Charles,
Unless you really need an interactive drawing tool --which we still don't have in PixInsight--, you really don't need to jump to other application to build a selective mask. If you know the coordinates and dimensions of the region that you want to mask (or unmask), then nothing can beat PixelMath. Here are several examples:
A binary rectangular mask:
(http://forum-images.pixinsight.com/pmath-masks/01.png)
A binary circular mask:
(http://forum-images.pixinsight.com/pmath-masks/02.png)
A circular mask with a linear radial gradient profile:
(http://forum-images.pixinsight.com/pmath-masks/03.png)
A circular mask using a nonlinear radial profile (hyperbolic arc sine in this case):
(http://forum-images.pixinsight.com/pmath-masks/04.png)
These are just four simple examples. You can generate really sophisticated masks with PixelMath. If you need to smooth the edges of a binary mask, you can do that very easily with the ATrousWaveletTransform tool: just remove the first one or two wavelet layers.
Hope this helps!
-
Hi,
When I need to do similar stuff (create a mask for a part of the image) I do the following:
1) Create a preview with the target section.
2) Create a view (pull the preview out of the image)
3) Use star alignment tool. Align the preview to the original image. It will produce an image of the same size of the original image, with everything black but the preview part.
4) Use the star mask, or wavelets or whatever tool I want to create a mask based on the new image.
This is super fast, and very accurate...
Cheers,
Jose
-
Juan: you're a show-off :) Great examples though.
Jose: great idea!
-
Hi:
You can do it with substitutewithpreview Script. Create a new black image with the same dimensions then use the script and you'll get a copy of the image with only the preview.
(http://farm5.static.flickr.com/4141/4901827045_10c3964c94_b.jpg)
Best. Silvercup
-
Silvercup,
That's a fantastic solution! No more tricks with the star alignment tool!
Thanks!
Jose