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
0
votes
1 answer

how to find the optimal values for parameter in_range and out_range for sklearn.exposure.rescale_intensity

If I use (0,100) my image becomes totally white and if I use (300,700) it becomes completely white. Do I need to brute-check every value every time I use in_range or is there some optimal values for both the parameters?
Deshwal
  • 3,436
  • 4
  • 35
  • 94
0
votes
1 answer

Image Reconstruction (Erosion and Dilation) both gives black image as output

I am trying to remove the black spots from a face of this image using the erosion methods. I have implemented: img = skimage.io.imread('blemish.jpeg') img = skimage.color.rgb2gray(img) img_inten =…
0
votes
1 answer

Scikit-image difference between morphology.watershed() and segementation.watershed()

I want to apply the Watershed algorithm using the skimage library for the first time and find the documentations examples pretty confusing as there are two versions of the watershed given in different modules. Could someone please tell me which one…
0
votes
1 answer

Extract polygon coordinates from image (map)

I have the following map: I want to extract the polygon coordinates (pixls), I am using the following code snipt, but the inteverted labeled image is all 0's (False): import numpy as np from skimage import io, measure, morphology from skimage.io…
Adham Enaya
  • 780
  • 1
  • 11
  • 29
0
votes
0 answers

How could I use opencv to achieve similar function as the piecewise affine transform of scikit-image?

There is a useful function in scikit-image: the PiecewiseAffineTransform, It is provided by the python package of scikit-image which cannot be used in c++ like opencv, how could I implement similar function of it with opencv or python package…
CoinCheung
  • 85
  • 10
0
votes
3 answers

Problem installing scikit-image on raspberry pi

I'm trying to install sci-kit image on my raspberry pi, but I'm running into some problems. Previously it was giving me the error that the file 'libaec.h' was missing. I installed libaec using pip, and then that error was solved. However, now it is…
0
votes
1 answer

skimage filter a selected region

I use a gaussian filter to preprocess microscope images, something like img=filters.gaussian(imgrescaled,sigma=gaussradius) but recently I needed to perform an additional filtering on a selected region (circular, x0,y0, radius r), where I'd like to…
alessandro
  • 3,838
  • 8
  • 40
  • 59
0
votes
1 answer

OpenCV: Sorting array of circles

I need to sort an array of circles (as result of HoughCircles function) by top to bottom and left to right but I can't manage to do so. I used the python built-in sorted method as follows: circles = np.round(circles[0, :]).astype("int") circles =…
0
votes
1 answer

How to convert curves in images to lines in Python?

I am new to image processing and am working with images like these: In these pictures, there will be more than one curves that I need to straighten out for them to look like a straight line.
arghhjayy
  • 127
  • 1
  • 8
0
votes
1 answer

Measuring Smoothness of a Grayscale image

For suppose, I have 2 images like below rough edges image and some noisy pixels all around the structure of image I have converted the Image like this with some pre-processing and removed almost all the noisy pixels. I would like to calculate a…
Bharath_Raja
  • 622
  • 8
  • 16
0
votes
1 answer

How to calculate the internal area(count of pixels) inside a ring-like shape?

I have the following image, and I do like to count the pixels inside the ring to get the area. I did some morphological operations as a kind of post-processing to make the image as much as possible with clear smooth edges. I tried to do that in…
0
votes
1 answer

"ValueError: Expected 2D array, got 1D array instead" when fitting data into model

I've viewed some questions regarding the same issue but none of them could help me. The problem is as it says, I'm unable to fit data into learning model. This is the main file, which calls out the class regarding the data i use to fit in the…
Phil
  • 175
  • 8
0
votes
1 answer

Regionprops finds always one region - python

I have an image with multiple globs, and when I am using regionprops to find the centroid and BB for each. However, it always finds only 1 for all of them. More specifically, I get the results on the left image, but I want the one on the right…
aDav
  • 41
  • 8
0
votes
1 answer

How can I draw a polygon in the right shape from a mask?

I have a mask with different labelled areas as seen in the attached image. After doing segmentation with active contour function, I want to draw a polygon around the resultant points of the active contour points, but the polygon reads the points…
Bilal
  • 3,191
  • 4
  • 21
  • 49
0
votes
1 answer

Is there any way to reshape more than one image together in python for NMF?

I´m new with Nmf with python . I´m trying to create a list of images to then get the components. Here is the code: from skimage import color from skimage import io import matplotlib.pyplot as…
DAVID LOBO
  • 11
  • 1