Skip to main content

Simple image cut and rebuild package. It allows to decide how to cut an image in overlapping squares. After having cut the image you can rebuild it (or you can do some processing before rebuilding it)

Project description

# icbs - Image Cut and (re)Build Squares Package to cut an image in overlapping rectangles and to rebuild it. Can be used for pre-processing an image before a learning algorithm and then rebuild it or to create a data set from a large image.

## Description It is useful to cut an image like this one: ![](/img/pre_cut.png) To obtain an array of images: ![](/img/after_cut.png)

It is useful because it handles well edge cases; from this image: ![](/img/edge_case.png) To obtain an array of images: ![](/img/after_cut_with_edge.png) With icbs you can also do the inverse operation, and given the images, rebuild the original one.

## Installation & Requirements To install this library you need to have at least python 3.6. You also need to install numpy (pip install numpy)Run pip install icbs.

## Usage icbs has two methods, cut and rebuild. The parameters are similar for both images and are better explained through an image: ![](/img/pre_cut_labled.png) The method cut returns the n_img_per_col and the array with the images. n_img_per_col is particularly important for using the rebuild method. You can find more info reading the parameter description under both methods.

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

icbs-0.0.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

icbs-0.0.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file icbs-0.0.2.tar.gz.

File metadata

  • Download URL: icbs-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for icbs-0.0.2.tar.gz
Algorithm Hash digest
SHA256 84895038997da37e1cc8e1a7115a5332ff5242fc46d02b3d7308b971d080ea2d
MD5 544e90627d5a5ba32707b6e0bfc5cf1d
BLAKE2b-256 2390de9c041aead08ec7a538b550424890ff6b917502294918811120bf9b9a2e

See more details on using hashes here.

File details

Details for the file icbs-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: icbs-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for icbs-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4084c6b64a37f168329d05888691f675f3850e8feb3dc32525b99c62df3e8515
MD5 6b7b10458ad386c369ef548cc067c7ab
BLAKE2b-256 e2c4b33442dd8ba9dfc0c524110dc7746aee358fa84f45c6d0634bccb0b123d6

See more details on using hashes here.

Supported by

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