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
7
votes
4 answers

Face morphing using opencv

Can I get some ideas on how to morph the face in a live video using opencv? I have tried Face substitution but it is implemented using openFrameworks. I would like to implement the same using opencv. Is there any other methods available in opencv…
2vision2
  • 4,933
  • 16
  • 83
  • 164
6
votes
1 answer

How to get the SSIM comparison score between two images?

I am trying to calculate the SSIM between corresponding images. For example, an image called 106.tif in the ground truth directory corresponds to a 'fake' generated image 106.jpg in the fake directory. The ground truth directory absolute pathway is…
prernaroy
  • 95
  • 1
  • 1
  • 6
6
votes
2 answers

Color correction using opencv and color cards

I was looking for automated ways of doing some basic color corrections and I came across this blog post. https://www.pyimagesearch.com/2021/02/15/automatic-color-correction-with-opencv-and-python/ python color_correction.py --reference ref.jpg …
Sum-Al
  • 193
  • 1
  • 9
6
votes
0 answers

Image Warping with a Polynomial Transformation

Outline I'm trying to warp an image (of a spectral peak in a time series, but this is not important) by generating a polynomial based on some 'centroid' data that is associated with the image (the peak at each time step) and augmenting the…
AlexP
  • 351
  • 2
  • 14
6
votes
2 answers

Cannot import name 'graycomatrix' from 'skimage.feature'

I have successfully installed skimage packages but when I try to import the from skimage.feature import graycomatrix, graycoprops it results in an error saying: cannot import name 'graycomatrix' from 'skimage.feature'…
6
votes
2 answers

How to concatenate 1000 images vertically using for loop in python?

I want to concatenate vertically a lot of images. I used skimage to read images then in each iteration io read image and vconcat concatenate the new image on the old image vertically. The result of my code didn't concatenate the images, just combine…
Edayildiz
  • 545
  • 7
  • 16
6
votes
0 answers

How to extend the Random Walk Algorithm to include also pre-segmented images according to this formula?

I have the following formula to extend the mathematical expectaion of the original random walk algorithm which is already implemented in SciKit-Image segmentation. I tried to implement the Guided random walker algorithm mentioned in this paper by…
Bilal
  • 3,191
  • 4
  • 21
  • 49
6
votes
1 answer

OpenCV hough lines vs scikit-image

I've been comparing OpenCV and scikit-image's hough lines implementation and I'm finding that scikit-image gives significantly better results. I'm trying to do the same canny/hough lines transform in both (with the addition of a GaussianBlur in…
Grokys
  • 16,228
  • 14
  • 69
  • 101
6
votes
1 answer

Point Cloud triangulation using marching-cubes in Python 3

I'm working on a 3D reconstruction system and want to generate a triangular mesh from the registered point cloud data using Python 3. My objects are not convex, so the marching cubes algorithm seems to be the solution. I prefer to use an existing…
Marco Carletti
  • 318
  • 2
  • 5
  • 16
6
votes
1 answer

skimage.transform.rescale changes datatype from uint8 to float64

When I use skimage.transform.rescale to reduce size of an image by 40% the datatype is converted from uint8 to float64. I can manually change the datatype but I don't want to have too many manual interventions in my code. Is there any rescaling…
Uğur Dinç
  • 303
  • 3
  • 16
6
votes
2 answers

ModuleNotFoundError: No module named 'skimage.util.montage'

I'm trying to import montage2d module from scikit-image: from skimage.util.montage import montage2d But this error popped up: ModuleNotFoundError: No module named 'skimage.util.montage' I'm pretty sure I installed the scikit-image package as: pip…
hiepph
  • 83
  • 3
  • 4
6
votes
1 answer

Could not find a version that satisfies the requirement , No matching distribution

On windows, I can't install any packages of these : numpy, matplotlib, skimage,... My python version is 2.7 Everytime the same error : Could not find a version that satisfies the requirement scikit-image (from ver sions: ) No matching distribution…
Sophie.A
  • 103
  • 1
  • 1
  • 6
6
votes
1 answer

Draw a gradual change ellipse in skimage

I want to draw an ellipse mask in skimage with gradual change color. The color changes starting from inside ellipse and end at outside ellipse. How to draw it with skimage or open-cv? Like image below:
huangbiubiu
  • 1,252
  • 20
  • 37
6
votes
1 answer

scipy.misc.imresize deprecated but skimage.transform.resize gives different results

The document of scipy.misc.imresize says that imresize is deprecated! Use skimage.transform.resize instead. But it seems skimage.transform.resize gives different results from scipy.misc.imresize. For example, for 1.jpg: import numpy as np from…
Panfeng Li
  • 3,321
  • 3
  • 26
  • 34
6
votes
2 answers

Apodization Mask for Fast Fourier Transforms in Python

I need to do a Fourier transform of a map in Python. Fast Fourier Transforms expect periodic boundary conditions, but the input map is not periodic. So I need to apply an input filter/weight slowly tapering the map toward zero at the edges. Are…