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.3.0.tar.gz (7.2 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.3.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for imgsegmentationmq-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ec0dc74332a6d4dda04d385268d13956132f7ab308ae60d3ff9fa4e489cb60ca
MD5 aabc719553cd50c609e06d6e8c22c3ca
BLAKE2b-256 dc1c854a4251d17eec497b0972c5e600c6f4686f055807597c42b6ed2b74872a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for imgsegmentationmq-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fefc648b0befae40d19c8301b223d9e12e17ef54b0b72091413d9f9e176e0428
MD5 f5cd5b5ee9ab9cba59f25dddbb4c3171
BLAKE2b-256 44e2e83154f01ee9f5e661c61247560cd45d1cdf014374be01868b1fa97c96e5

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