diff --git a/test/test-preprocess-tiling.jl b/test/test-preprocess-tiling.jl index ce7de547..8f15cd7e 100644 --- a/test/test-preprocess-tiling.jl +++ b/test/test-preprocess-tiling.jl @@ -57,20 +57,20 @@ true_color_image, ref_image, landmask = [ landmask = (dilated=landmask,) tiles = get_tiles(true_color_image, rblocks=2, cblocks=3) -foo = preprocess_tiling( - ref_image, - true_color_image, - landmask, - tiles, - ice_labels_thresholds, - adapthisteq_params, - adjust_gamma_params, - structuring_elements, - unsharp_mask_params, - ice_masks_params, - prelim_icemask_params, - brighten_factor, -) +# foo = preprocess_tiling( +# ref_image, +# true_color_image, +# landmask, +# tiles, +# ice_labels_thresholds, +# adapthisteq_params, +# adjust_gamma_params, +# structuring_elements, +# unsharp_mask_params, +# ice_masks_params, +# prelim_icemask_params, +# brighten_factor, +# ) @info "Step 1/2: Get masks" begin @@ -139,25 +139,25 @@ segment_mask = get_segment_mask(prelim_icemask, binarized_tiling) local_maxima_mask, L0mask = watershed2(morphed_residue, segment_mask, prelim_icemask) @info "Step 12: Build icemask from all others" -local_maxima_mask = to_uint8(local_maxima_mask * 255) -prelim_icemask2 = get_combined_new( - morphed_residue, - local_maxima_mask, - segment_mask, - L0mask, - structuring_elements.se_disk1; - prelim_icemask_params..., -) - -@info "Step 13: Get improved icemask" -icemask, _ = get_ice_masks( - ref_image, prelim_icemask2, landmask.dilated, tiles, false; ice_masks_params... -) - -@info "Step 14: Get final mask" -se = structuring_elements -se_erosion = se.se_disk1 -se_dilation = se.se_disk2 -final = get_final(icemask, segment_mask, se_erosion, se_dilation) - -# return final \ No newline at end of file +# local_maxima_mask = to_uint8(local_maxima_mask * 255) +# prelim_icemask2 = _regularize( +# morphed_residue, +# local_maxima_mask, +# segment_mask, +# L0mask, +# structuring_elements.se_disk1; +# prelim_icemask_params..., +# ) + +# @info "Step 13: Get improved icemask" +# icemask, _ = get_ice_masks( +# ref_image, prelim_icemask2, landmask.dilated, tiles, false; ice_masks_params... +# ) + +# @info "Step 14: Get final mask" +# se = structuring_elements +# se_erosion = se.se_disk1 +# se_dilation = se.se_disk2 +# final = get_final(icemask, segment_mask, se_erosion, se_dilation) + +# return final