Skip to main content

Image segmentation package

Project description

Description

Repository for the image segmentation package.

Installing the package

To install the package in Unix/macOS, execute the following command:

python3 -m pip install imgsegmentationmq

To install the package in Windows, execute the following command:

py -m pip install imgsegmentationmq

Importing and uding the package

To import the package to your python script run the following line:

import imgsegmentationmq

To import all the algorithms to your script run the following line:

from imgsegmentationmq import *

Once you have run the previous line, you can start using the algorithms by using the respective calls:

For the k-means algorithm:

    imgsegmentationmq.means.kmeans(k,image, max_it, init_centroids)

For the c-means algorithm:

    imgsegmentationmq.means.kmeans(k,image,m,max_it,init_centroids)

For the k-quantile algorithm:

    imgsegmentationmq.means.kmeans(k,image,k1,k2,max_it,init_centroids)

For the c-quantile algorithm:

    imgsegmentationmq.means.kmeans(k,image,m,k1,k2, max_it, init_centroids)

Please make sure you have the arguments in the appropiate form. Specifically note that to use these algorithms the image to which you will apply it needs to be a numpy array with shape (image length, image width, image colorscale), this means that for a 60x40 image in gray colorscale, the shape should be (60,40,1) while for the a 60x40 image with RGB colorscale, the shape of the numpy array should be (60,40,3).

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

imgsegmentationmq-1.2.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

imgsegmentationmq-1.2.2-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file imgsegmentationmq-1.2.2.tar.gz.

File metadata

  • Download URL: imgsegmentationmq-1.2.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for imgsegmentationmq-1.2.2.tar.gz
Algorithm Hash digest
SHA256 67b534b543f5b283ae88b52310afb8156ae7f99744f8c583ae08f54f4c418695
MD5 199830b1a110a11e9b9ba4fa89b59ce7
BLAKE2b-256 89304f339c0a24f4259a2003a072a107105eb0c310eff9f07d8b59110bbe8c81

See more details on using hashes here.

File details

Details for the file imgsegmentationmq-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for imgsegmentationmq-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a584f8846227867b84a6c31bdaed6de44ef7cbf1fb655f3e9390bea57acf59cc
MD5 4bd5ffe6d201343cec7d653b232926b6
BLAKE2b-256 26b64e9acf939fe700fb15831ae7a52d5e290ee06abf047082bc0ab277a39bfe

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