make_morphology_mask module
- tw_source_finder.make_morphology_mask.main(argv)[source]
The parameters for doing morphological erosion: filename: argv[1] name of fits file to process limiting_sigma: argv[2] amount by which noise to to be multiplied for mask cutoff filter_size: argv[3] size for structure element = radius of D or size of with for R filter_type: argv[4] D = Disk, R = Rectangle do_batch = argv[4] do batch processing? T = Yes, F = don’t double_erode = argv[5] do double_erode? T = Yes, F = don’t
- tw_source_finder.make_morphology_mask.make_mask(argv)[source]
The parameters for doing morphological erosion filename: name of fits file to process limiting_sigma: amount by which noise to to be multiplied for mask cutoff filter_size: size for structure element = radius of D or size of with for R filter_type: D = Disk, R = Rectangle The process can be described through the following equations: o = original image d - output from erosion-> erosion-> dilation t = white TopHat, which should show only compact structures smaller than the structure element t = o - d m = mask derived from a comparison where t > some signal m * t = m * (o - d) o_d = output diffuse image = o - m * t = o - (m * o - m * d) = o - m * o + (m * d) we don’t know the flux scale of m * d as we don’t know the flux scale of the dilated image, but it is buried in the output image, so get rid of it by subtracting it off, which equates to o_d = o - m * o and o_c = image of compact objects = m * o