Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add voronoi segmentation #348

Merged
merged 23 commits into from
Jul 23, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add voronoi PR IDs to changelog
  • Loading branch information
aleju committed Jul 23, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 5638d61198cecc2f287dc28ecec6392bebc66daa
27 changes: 14 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -148,41 +148,42 @@
similar colors using k-Means clustering. #347
* Added a check script for `UniformColorQuantization` under
`checks/check_uniform_color_quantization.py`. #347
* Added `imgaug.imgaug.normalize_random_state()`.
* Added `imgaug.augmenters.segmentation._ensure_image_max_size()`.
* Added `imgaug.imgaug.normalize_random_state()`. #348
* Added `imgaug.augmenters.segmentation._ensure_image_max_size()`. #348
* Added `imgaug.augmenters.segmentation.PointsSamplerIf`. An interface for
classes used for sampling (usually random) coordinate arrays on images.
* Added `imgaug.augmenters.segmentation._verify_sample_points_images()`.
* Added `imgaug.augmenters.segmentation._verify_sample_points_images()`. #348
* Added `imgaug.augmenters.segmentation.RegularGridPointsSampler`. A class
used to generate regular grids of `rows x columns` points on images.
used to generate regular grids of `rows x columns` points on images. #348
* Added `imgaug.augmenters.segmentation.RelativeRegularGridPointsSampler`.
Similar to `RegularGridPointsSampler`, but number of rows/columns is set
as fractions of image sizes, leading to more rows/columns for larger images.
as fractions of image sizes, leading to more rows/columns for larger
images. #348
* Added `imgaug.augmenters.segmentation.DropoutPointsSampler`. A class
used to randomly drop `p` percent of all coordinates sampled by another
another points sampler.
another points sampler. #348
* Added `imgaug.augmenters.segmentation.UniformPointsSampler`. A class used
to sample `N` points on each image with y-/x-coordinates uniformly sampled
using the corresponding image height/width.
using the corresponding image height/width. #348
* Added `imgaug.augmenters.segmentation.SubsamplingPointsSampler`. A class
that ensures that another points sampler does not produce more than
`N` points by subsampling a random subset of the produced points if `N`
is exceeded.
is exceeded. #348
* Added `imgaug.augmenters.segmentation.segment_voronoi()`. A function that
converts an image into a voronoi image, i.e. averages the colors within
voronoi cells placed on the image.
voronoi cells placed on the image. #348
* Also added in the same module the functions
`_match_pixels_with_voronoi_cells()`, `_generate_pixel_coords()`,
`_compute_avg_segment_colors()`, `_render_segments()`.
* Added `imgaug.augmenters.segmentation.Voronoi`. An augmenter that converts
an image to a voronoi image.
an image to a voronoi image. #348
* Added a check script for `Voronoi` in `checks/check_voronoi.py`.
* Added `imgaug.augmenters.segmentation.UniformVoronoi`, a shortcut for
`Voronoi(UniformPointsSamper)`.
`Voronoi(UniformPointsSamper)`. #348
* Added `imgaug.augmenters.segmentation.RegularGridVoronoi`, a shortcut for
`Voronoi(DropoutPointsSampler(RegularGridPointsSampler))`.
`Voronoi(DropoutPointsSampler(RegularGridPointsSampler))`. #348
* Added `imgaug.augmenters.segmentation.RelativeRegularGridVoronoi`, a shortcut
for `Voronoi(DropoutPointsSampler(RelativeRegularGridPointsSampler))`.
for `Voronoi(DropoutPointsSampler(RelativeRegularGridPointsSampler))`. #348

## Fixes