Image Lib
Pooling Functions
Avg Pool
UTCGP.image_pool.avgpool_resize_image2D_factory — Function
avgpool_resize_image2D_factory(i::Type{I}) where {I<:SizedImage2D}Create average-pooling methods specialized on the given image type.
The output preserves the original image size by average-pooling block windows and writing the pooled value back over each source block.
Intensity image, k = 2
pooled = avg_intensity(img_intensity, 2)
Intensity image, k = 10
pooled = avg_intensity(img_intensity, 10)
Binary image, > 0.3, k = 5
pooled = avg_binary(img_binary, 5)
Segmented image from fastscanning_image2D, k = 5
pooled = avg_segment(img_segment, 5)
Max Pool
UTCGP.image_pool.maxpool_resize_image2D_factory — Function
maxpool_resize_image2D_factory(i::Type{I}) where {I<:SizedImage2D}Create max-pooling methods specialized on the given image type.
The output preserves the original image size by max-pooling block windows and writing the pooled value back over each source block.
Intensity image, k = 2
pooled = max_intensity(img_intensity, 2)
Intensity image, k = 10
pooled = max_intensity(img_intensity, 10)
Binary image, > 0.3, k = 5
pooled = max_binary(img_binary, 5)
Segmented image from fastscanning_image2D, k = 5
pooled = max_segment(img_segment, 5)