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
8
votes
2 answers

How to Correctly mask 3D Array with numpy

I'm trying to mask a 3D array (RGB image) with numpy. However, my current approach is reshaping the masked array (output below). I have tried to follow the approach described on the SciKit-Image crash course. Crash Course I have looked in the…
Shawn
  • 573
  • 3
  • 7
  • 17
8
votes
1 answer

Trouble with relative / absolute functions import in scikit-image

I'm trying to submit a PR for scikit-image, but I get a Travis-CI error: Traceback (most recent call last): File "doc/examples/edges/plot_canny.py", line 22, in from skimage import feature File…
beyondfloatingpoint
  • 1,239
  • 1
  • 14
  • 23
8
votes
3 answers

Detecting the upper side of a dice

Is it possible to detect the upper side of a dice? While this will be an easy task if you look from the top, from many perspectives multiple sides are visible. Here is an example of a dice, feel free to take your own pictures: You usually want to…
tfv
  • 6,016
  • 4
  • 36
  • 67
8
votes
1 answer

Extracting attributes from images using Scikit-image

I've been using scikit-image to classify road features with some success. See below: . I am having trouble doing the next step which is to classify the features. For example, let's say these features are located in the box (600, 800) and (1400,…
8
votes
1 answer

Uniform LBP with scikit-image local_binary_pattern function

I'm using the local_binary_pattern from skimage.feature with uniform mode like this: >>> from skimage.feature import local_binary_pattern >>> lbp_image=local_binary_pattern(some_grayscale_image,8,2,method='uniform') >>>…
mavillan
  • 365
  • 1
  • 2
  • 13
8
votes
2 answers

Gap Filling Contours / Lines

I have the following image: and I would like to fill in its contours (i.e. I would like to gap fill the lines in this image). I have tried a morphological closing, but using a rectangular kernel of size 3x3 with 10 iterations does not fill in the…
Alex Rothberg
  • 10,243
  • 13
  • 60
  • 120
8
votes
2 answers

ImportError cannot import name BytesIO when import caffe on ubuntu

I am trying to make caffe running on my machine equipped with Ubuntu 12.04LTS. After finishing all the steps on the Installation page, I trained the LeNet model successfully and tried to use it as the tutorial from here. Then I got the following…
stoneyang
  • 179
  • 1
  • 2
  • 12
8
votes
2 answers

CIELAB color range for Scikit-image?

I am working on CIELAB colour space but cannot find any information about the range of each channel produced by skimage.color.rgb2lab . Thanks.
TinyEpic
  • 541
  • 1
  • 11
  • 18
8
votes
1 answer

Numpy View Reshape Without Copy (2d Moving/Sliding Window, Strides, Masked Memory Structures)

I have an image stored as a 2d numpy array (possibly multi-d). I can make a view onto that array that reflects a 2d sliding window, but when I reshape it so that each row is a flattened window (rows are windows, column is a pixel in that window)…
locallyoptimal
  • 113
  • 1
  • 6
8
votes
3 answers

How can i find cycles in a skeleton image with python libraries?

I have many skeletonized images like this: How can i detect a cycle, a loop in the skeleton? Are there "special" functions that do this or should I implement it as a graph? In case there is only the graph option, can the python graph library…
7
votes
0 answers

ValueError: Could not find a backend to open '10.jpeg` with iomode `ri`

I am new to MaskRCNN. I have added 15 images to the dataset/train folder however, while running the code I am getting error for the line image = skimage.io.imread(image_path) Error is : ValueError: Could not find a backend to open…
be_real
  • 180
  • 1
  • 1
  • 12
7
votes
3 answers

Build custom AWS Lambda layer for Scikit-image

Outline: I need to use scikit-image inside some AWS lambda functions, so I'm looking to build a custom AWS lambda layer containing scikit-image. My questions in general should apply to any python module, notably scikit-learn, or any custom layer in…
Richard
  • 3,024
  • 2
  • 17
  • 40
7
votes
1 answer

Finding image peaks using ndimage.maximum_filter and skimage.peak_local_max

I am trying to find some relative maximums of a given image. I understand that there are two possible methods, the first is using scipy.ndimage.maximum_filter() and the second using skimage.feature.peak_local_max(). In order to compare both methods…
Jose M Gonzalez
  • 349
  • 3
  • 16
7
votes
3 answers

greyscale image to 3 channels

I have code that looks like this from skimage import io as sio test_image = imread('/home/username/pat/file.png') test_image = skimage.transform.resize(test_image, (IMG_HEIGHT, IMG_WIDTH), mode='constant', preserve_range=True) print…
Baron Yugovich
  • 3,843
  • 12
  • 48
  • 76
7
votes
3 answers

Method to determine polygon surface rotation from top-down camera

I have a webcam looking down on a surface which rotates about a single-axis. I'd like to be able to measure the rotation angle of the surface. The camera position and the rotation axis of the surface are both fixed. The surface is a distinct solid…
Steve Osborne
  • 680
  • 4
  • 12