Questions tagged [scikit-image]

scikit-image is a Python image processing toolbox for SciPy.

scikit-image is a collection of algorithms for image processing with SciPy. The scikit-image SciKit extends scipy.ndimage to provide a versatile set of image processing routines.

1871 questions
4
votes
1 answer

Python: How to check if an array is contained in another array using `numpy.all`and `numpy.any`?

I am working on detecting certain areas on an image using scikit-image. I was able to detect blobs using blob_doh function. Also I was able to find regions using Canny edge detector and labeling. Now I want to check if the blobs, which I found…
user1329187
4
votes
1 answer

Python: Center array image

Using skimage library I have to center images like these. I have found the SimilarityTransform that should accept the offsets but the documentation is lacking. How would I detect the corners of such image and then determine how to center it? The…
Adrian Z.
  • 904
  • 1
  • 12
  • 29
4
votes
1 answer

scikit-image - Missing DLL

I have installed scikit-image from a binary but when I run this command: from skimage.measure import structural_similarity I get this error: Traceback (most recent call last): File "", line 1, in from skimage.measure…
n.jmurov
  • 123
  • 2
  • 12
4
votes
1 answer

Morphology erosion - difference betwen Scipy ndimage and Scikit image

the morphology operators differ in Scipy ndimage and Scikit image. I suppose, boundary conditions are treated in different way: import numpy as np from scipy import ndimage from skimage import morphology scp =…
MarcinBurz
  • 347
  • 3
  • 16
4
votes
1 answer

Choosing/Normalizing HoG parameters for object detection?

I'm using HoG features for object detection via classification. I'm confused about how to deal with HoG feature vectors of different lengths. I've trained my classifier using training images that all have the same size. Now, I'm extracting regions…
user961627
  • 12,379
  • 42
  • 136
  • 210
3
votes
1 answer

Installation error of scikit-image in python-3.11.0

Getting errors when installing scikit-image with python-3.11.0. The package is simply installed via pip install scikit-image or python -m pip install -U scikit-image. The error messages showed that the problem occur on the wheel building process,…
AlpacaKing
  • 371
  • 2
  • 10
3
votes
1 answer

I have issue at install scikit-image with python 3.11 what should I do?

Good evening everyone, I have an issue with scikit-image while installing this package I installed python 3.11 on windows 11 pip install scikit-image I got these issues as below in the screenshot got previous issue EDIT: I installed Microsoft C++…
Emad Uones
  • 69
  • 7
3
votes
1 answer

circular import in official skimage libraries?

I want to run some basic circle detection with skimage, but I've got circular import. What can be the problem here? I've tried the code from here: https://stackoverflow.com/a/58124466/7973735 This code needs import cv2 import numpy as np from…
Farm Éva
  • 97
  • 7
3
votes
1 answer

Select area (square) with specific measure from an image using skimage python

I'm trying to extract 3 areas from the image (lungs image) these areas are indicated in the soft tissues, each area will be a square of specific height and width e.g. 10mm for width and height, as shown in the image below, as seen in the image also…
3
votes
1 answer

Setting a list of (x,y) cooordinates into an array so polygons are drawn

I have some code that prints out a list of coordinates (stored in points f=open('139cm_2000_frame27.json') data=json.load(f) shapes=data["shapes"] for i in shapes: print(i['label']) # prints the label first for c in i['points']: …
3
votes
0 answers

Finding homography matrices for individual image tiles from a homography matrix that was calculated on the whole image

I'm trying to apply homography transformation on really large images (>30GB). So, my idea is to: Calculate the homography on the downscaled image. Do the matrix correction with [1, 1, F, 1, 1, F, 1/F, 1/F, 1] where F is the scaling factor. Apply…
3
votes
0 answers

Finding optimal nearest neighbour pairs

Goal I am writing a "colocalization" script to identify unique co-localized pairs of coordinates between two sets of data. My data is quite large with <100k points in each set so performance is pretty important. For example, I have two sets of…
3
votes
2 answers

Skimage rgb2gray giving errors, the input array must have size 3 along

So basically, I am trying to open a JPG image and for some reason the rgb2gray is giving some errors. I have tried not to use the rgb2gray function and it worked, it displayed the image with a gaussian effect. import os # for changing path,…
Davido
  • 71
  • 1
  • 5
3
votes
1 answer

How to remove mammography tag artifacts

I have a mammography image dataset (mini DDSM). These images show letter artifacts indicating left or right mamma and other useless information for my ML model, so I want to curate this dataset before training the model. In this paper, Preprocessing…
user15468984
3
votes
2 answers

How do you convert ProPhoto RGB colorspace to RGB with scikit-image and/or PIL?

I have TIF files that are in the ProPhoto RGB colorspace. These are imported fine with scikit-image's "imload" method. However, when I try to use matplotlib to view the image data I receive the error: plt.imshow(myImage) plt.show() Clipping input…