Filtering Astronomical Images

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
geoland
Posts: 74
Joined: 2015-05-14T05:11:38-07:00
Authentication code: 6789

Re: Filtering Astronomical Images

Post by geoland »

Thanks fwm42. I will have a look again. I have tried many of your scripts.
That makes sense. But looking at the magnitude of the slopes in your supplied image, I can't see any changes in brightness.
This is a crop from the combined sRGB image. The isolated bright red green and blue pixels are artefacts. They don't belong there - ignore chromatic aberration around the stars. I can perform the operation (whatever that is) on the colour images during stacking rather than the grayscale channels.

crop
Version: ImageMagick 7.0.7 (latest compiled from source) Q32 x86_64 (as of) 2018 - 04 - 31 xubuntu
geoland
Posts: 74
Joined: 2015-05-14T05:11:38-07:00
Authentication code: 6789

Re: Filtering Astronomical Images

Post by geoland »

I'm looking for a way of implementing a Winsorized Sigma Clipping routine in IM and perhaps the thread has steered away from that to finding hot and cold pixels by other means.

So, getting back on track and referring to the link is there a way to do this in IM or perhaps something similar. In a nutshell replacing outliers with the most valid neighbour value.
Version: ImageMagick 7.0.7 (latest compiled from source) Q32 x86_64 (as of) 2018 - 04 - 31 xubuntu
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Filtering Astronomical Images

Post by fmw42 »

By "nearest valid neighbor in the sample", does that mean in spatial distance or graylevel? I assume it is nearest graylevel, is that correct?

Imagemagick does not have this function. However, I suspect it could be scripted (but likely would be slow) or someone might code it as another option to the Imagemagick -statistic function.
geoland
Posts: 74
Joined: 2015-05-14T05:11:38-07:00
Authentication code: 6789

Re: Filtering Astronomical Images

Post by geoland »

I think gray level is correct.

Winsorizing would be very handy.
Version: ImageMagick 7.0.7 (latest compiled from source) Q32 x86_64 (as of) 2018 - 04 - 31 xubuntu
jmac698
Posts: 48
Joined: 2013-12-20T01:57:16-07:00
Authentication code: 6789

Re: Filtering Astronomical Images

Post by jmac698 »

The high-end program for this is Pixinsight
https://pixinsight.com

For free you can try
deepskystacker.free.fr/
Detect and clean remaining hot/cold pixels:
http://deepskystacker.free.fr/english/u ... osmetictab
Post Reply