Skip to main content

A module used for downsampling high resolution images using the scattering transform

Project description

Downsampling high resolution images using the scattering transform

Atlasing high resolution data,Scattering transform, Visualization of imges, Downsampling with multiple methods

Usage

python3 -m scatter_downsample -i IMAGE -n NUMBER OF DOWNSAMPLE [-s] [filtered standard deviation channels] [-d] [directions for gaussian] [-m] [methods]

or

import scatter_downsample in python3 environment

ScatterDown(img,ndown2,filtered_std=2,method=1,direction=2):

Input:

- img: input image
- ndown2: how many times to downsample by a factor of 2
- filtered_std: how many standard deviations maximum should not get filtered out (default 2)
- direction numbers: for gaussian downsampling (default 2)
- method: (default 1)
    - 2*2 mean and standard deviation (1)
    - 2*2 mean and standard deviation with directions (2)
    - Gaussian filtering (3)

Output:

- high dimensional image in ndarray form
- labels for each channel
- an example visualization that you save as a png file

Tests

installed by: python -m unittest tests/testcase.py

  • an example image to test for the shape of output image and labels for method 1 (mean and std)

Versions

0.2.4

  • Add options for Gaussian Downsampling
  • Add Gaussian Flipping and Rotations methods
  • Setup requirements.txt for auto download required modules

0.2.0

Add in updated methods (mean/std with directions and gaussian filtering), add command line interfaces with argparse

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scatter_downsample-0.2.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

scatter_downsample-0.2.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file scatter_downsample-0.2.1.tar.gz.

File metadata

  • Download URL: scatter_downsample-0.2.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

File hashes

Hashes for scatter_downsample-0.2.1.tar.gz
Algorithm Hash digest
SHA256 79a5a488a1f8a9701ae6482944a1f63b20293371a72409f1d432729f5e28806c
MD5 d8e314aaadd14a9d2ff232bcdea09295
BLAKE2b-256 3a87fbd9b482c12f4b16f0ba12007c178967f6d36f3e154c7ced45e5c8785de5

See more details on using hashes here.

File details

Details for the file scatter_downsample-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: scatter_downsample-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

File hashes

Hashes for scatter_downsample-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a4b8e41cf08e4747b28f9b25f778663dfcc7f8d1907727363e82dd42c707b2e
MD5 ae861bd4300314964f8645f726e7064c
BLAKE2b-256 62ab80a219feade2ecc2ec45d1b616114c200654f46f0be5d81fddda5b130de2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page