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

More robust sampling #29

Merged
merged 3 commits into from
Apr 30, 2018
Merged

More robust sampling #29

merged 3 commits into from
Apr 30, 2018

Conversation

mcquin
Copy link
Collaborator

@mcquin mcquin commented Apr 30, 2018

Sample the corner with the lowest standard deviation. Pad the image with random noise generated from the corner's mean and standard deviation.

Additionally, reorganize preprocessing operations to reduce noise from omitted pixels:

  1. Crop the image such that the dimensions are no more than the desired size.
  2. Clip the pixels in the 0.5th and 99.5th percentile, reducing noise in the cropped image.
  3. Pad the image with random noise sampled from the mean and standard deviation of the corner with the lowest standard deviation.
  4. Stretch the image from (image.min, image.max) to (0, 256), and save as uint8.

@mcquin mcquin merged commit 9a2b5e2 into master Apr 30, 2018
@mcquin mcquin deleted the sample branch April 30, 2018 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant