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 add noise using skimage

I have written a simple code to add noise to image: import cv2 from skimage.util import * img = cv2.imread("./A/0030050944.jpg") img = random_noise(img, mode='poisson', seed=42, clip=False) cv2.imwrite("test.jpg", img) But this only gives a blank…
meu
  • 125
  • 2
  • 10
0
votes
0 answers

Getting relative position of slices in NumPy Arrays

I am trying to isolate subimages in a large (6000px wide) jpg file. I managed to customize scikit-image segmentation/labeling example to achieve what I want, but had to resize my image so I don't get MemoryError. Is there a way to get the labeled…
Martim Passos
  • 137
  • 1
  • 12
0
votes
1 answer

How to use egg to install scikit-image?

I am stuck on this installation of scikit-image (aka skimage). I tried multiple ways: Installation from a git hub folder (using the requirements.txt) Installation from a whl file Installation with pip install scikit-image All three trials failed…
totalMongot
  • 194
  • 8
0
votes
1 answer

Python skimage flood fill won't work on a loaded binarized image

I'm trying to apply a flood_fill method to a certain image. Unfortunately, even though it works on an exemplary image, it doesn't work on mine, which is already binarized. The code that works: from skimage import data, filters from…
0
votes
1 answer

Getting DLL load failed error when trying to import filters from skimage

I am using Anaconda 4.8.0 with a Python 3.6.9 environment. Using Numpy 1.18.1, SciPy 1.4.1 scikit-image 0.16.2. Six 1.13 is also installed although I am not sure how critical that is. I want to do some simple edge detection on an image but I am…
Arne
  • 25
  • 5
0
votes
0 answers

How to get a color-histogramm of the hue-values by using skimage instead OpenCV?

I want to get color histograms of RGB images. It should be a global histogram of the hue values in HSV color space, resulting in 256 features per image. My code in skimage is as follows (I'm not sure if this code is correct): img_resize =…
Code Now
  • 711
  • 2
  • 9
  • 20
0
votes
0 answers

Extracting each line separately in an Image using python

I have a binary image in which some lines are there at arbitrary angles( line pixels have some non zero value(suppose 1) and rest of the image having pixel values as zero).I have to extract each line separately(For Example, if there are 5 lines in…
0
votes
1 answer

Scaling multiple features with StandardScaler, before or after concatenation?

I have an image data set (with pixel values from 0 to 255), from which I want to extract different features, e.g. HOG features, Gabor filter feature, LBP and color histogram. I would like to concatenate these features into a single feature vector…
Code Now
  • 711
  • 2
  • 9
  • 20
0
votes
1 answer

Background removing in an image

I want to change the background of an image to white. The following code gives me a black background. the input image has a white background. when i print output, it shows black background. Input image is given above import os import sys import…
Nemesis
  • 191
  • 1
  • 1
  • 11
0
votes
2 answers

Use skimage feature extractors in PyTorch Transforms

I want to apply skimage’s Local Binary Pattern feature extraction on my data, and was wondering if there was any possibility of doing this inside my torch’s Transforms, which right now is the following: data_transforms = { 'train':…
Pepe
  • 301
  • 4
  • 13
0
votes
2 answers

Using cv2.COLOR_BGR2GRAY or color.rgb2gray for hog descriptor from skimage?

I want to train a SVM with hog features extracted by the hog descriptor from skimage. The images have 3 channels (RGB-images), which I want to transform to grayscale before extracting the hog features. And here is the problem, when I use the…
Code Now
  • 711
  • 2
  • 9
  • 20
0
votes
1 answer

Convert an image format from 32FC1 to 16UC1

I need to encode an image in 16UC1 format, but I receive the error: cv_bridge.core.CvBridgeError:encoding specified as 16UC1, but image has incompatible type 32FC1 I tried to use skimage function img_as_uint but since my image values are not between…
Sebastián Mayorga
  • 151
  • 1
  • 3
  • 17
0
votes
1 answer

Is it possible to reconstruct(interpolate) a 3D surface using skimage marching cube from 3D point cloud?

I have a 3D point cloud: import numpy as np x = np.array([...]) y = np.array([...]) z = np.array([...]) Is it possible to "reconstruct" a 3D surface using skiamge's marching_cubes from this 3D point cloud? I checked skimage's…
CodingNow
  • 998
  • 1
  • 11
  • 23
0
votes
1 answer

the function of img_as_float and rgb2gray

In scikit-image, there two functions, img_as_float and rgb2gray. Are they generating the same type of numerical arrays, with value of [0,1]? What are the real difference of these two functions from the underlying numpy arrays used to representing a…
user288609
  • 12,465
  • 26
  • 85
  • 127
0
votes
1 answer

Error downloading image dataset using imread

I'm downloading images from open Images Dataset V4, it turns out that in a moment, it comes with an error. The code is the following: from skimage import io saved_dirs = ['/content/drive/My Drive/AI/Dataset/Open Images Dataset v4 (Bounding…
Sebastián
  • 437
  • 5
  • 19