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.1.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.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imgsegmentationmq-1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b34dbc745a770f418ae278733e2a567b33bfcfa47a870c2210514efce161298d
MD5 168f1bb560c800e0f516555851565e66
BLAKE2b-256 f740e8adfd1bbc0edb27a3df33e712850360e859351328f28bf0cbef6bdfe2da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for imgsegmentationmq-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ba51a7ef89db81e6cc4c21ba18eaadb248382170c3d926ae9c2aa5ff00dd126
MD5 3d248d47bbc2ab97e429bb1fe17d24fb
BLAKE2b-256 86b6ed0d4a6117828ef4c6adf5582308dc138b33ec7c08c7fbf274f1a0f25a76

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