Skip to main content

# 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.

Release files for icbs 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for icbs 0.0.2
File Size Uploaded
icbs-0.0.2.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for icbs 0.0.2
File Interpreter ABI Platform
icbs-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / icbs-0.0.2.tar.gz

Download URL icbs-0.0.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
84895038997da37e1cc8e1a7115a5332ff5242fc46d02b3d7308b971d080ea2d
BLAKE2b-256 checksum
How to use checksums
2390de9c041aead08ec7a538b550424890ff6b917502294918811120bf9b9a2e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / icbs-0.0.2-py3-none-any.whl

Download URL icbs-0.0.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4084c6b64a37f168329d05888691f675f3850e8feb3dc32525b99c62df3e8515
BLAKE2b-256 checksum
How to use checksums
e2c4b33442dd8ba9dfc0c524110dc7746aee358fa84f45c6d0634bccb0b123d6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page