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

How can I resize on time-series data on python

I'm trying to do deep-learning on time-series data. There are 12 features for each data, but every series data don't have the same amount of data. Some shape is [48,12], and some is [54,12], I'm trying to resize them into [50,12]. All I know until…
sechang
  • 41
  • 4
4
votes
4 answers

Remeshing 3D triangulated surface for better mesh quaility

I am using marching cubes to extract a 2D surface from a volume. In this case a Gyroid. import numpy as np from numpy import sin, cos, pi from skimage import measure import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D def…
DrBwts
  • 3,470
  • 6
  • 38
  • 62
4
votes
1 answer

skimage.transform.rotate: getting a completely black image on saving

I am working with python 3.6 and performing following functions on an image (read image, pad image, crop image, rotate image). I am either using skimage or basic python function. If I don't rotate the image then there is no warning. But if I rotate…
user1609160
  • 69
  • 1
  • 4
4
votes
1 answer

How to automatically select best result from try_all_threshold?

I am applying thresholding on a text-digit based image. Using skimage.filters.try_all_threshold results in 7 of thresholding algorithms getting applied. I am able to get the resut but I am thinking on how I can choose only 1 result to pass the…
4
votes
1 answer

Warp with skimage too slow

(Taking a chance at not posting an example here but I think the question is general enough that one is not necessary.) I am using skimage.transform.warp to warp a 200x2000 image given 500 source and destination control points calculated with…
Joe Flip
  • 1,076
  • 4
  • 21
  • 37
4
votes
1 answer

threshold_local returns a different result than threshold_adaptive in scikit-image

I'm reproducing this example from the documentation: import matplotlib.pyplot as plt from skimage import data from skimage.filters import threshold_otsu, threshold_adaptive image = data.page() global_thresh = threshold_otsu(image) binary_global…
Luis Ramon Ramirez Rodriguez
  • 9,591
  • 27
  • 102
  • 181
4
votes
2 answers

How could I separate cells from binary image

I have a binary image of cells. I want to use python to separate these cells individually. Each cell will save in an image. For example, I have 1000 cells, then the output will be 1000 images, each image contains 1 cell. Currently, I am using two…
Jame
  • 3,746
  • 6
  • 52
  • 101
4
votes
1 answer

fastest Python native way to manipulate images?

I'm creating a process that iterates over an image and does x/y transformations and zooms. The original images are very large. My current process involves making a bash script (using python) to creates rows and rows with the all-famous Imagemagick…
4
votes
0 answers

tensorflow equivalent for scipy.ndimage and skimage.measure

I have a script that takes a label image, where each pixel represent the class of the original pixel in a given image. Using scipy.ndimage and skimage.measure I create a list of bounding boxes that contain each object. I'd like to do the same…
Tal
  • 127
  • 1
  • 7
4
votes
1 answer

fastest way to iterate over all pixels of an image in python

i have already read an image as an array : import numpy as np from scipy import misc face1=misc.imread('face1.jpg') face1 dimensions are (288, 352, 3) i need to iterate over every single pixel and populate a y column in a training set i took the…
chessosapiens
  • 3,159
  • 10
  • 36
  • 58
4
votes
2 answers

Similar color detection in Python

Given a color either in RGB or Hex, how do I find colors that are similar to it? By similar I mean they should be distinguishable by small values.
Jp Reddy
  • 366
  • 1
  • 4
  • 15
4
votes
1 answer

How to detect texture disruption

Let's say we have a number of color images that are examples of some textured pattern. There is a rare occurrence where this texture is "disrupted" by some foreign object. What would be the best way to detect these rare anomalies? I thought about…
4
votes
2 answers

How to completely fill holes to an image using the skimage?

I am using skimage to fill holes a binary input image (left side). This is my code from skimage import ndimage img_fill_holes=ndimage.binary_fill_holes(binary).astype(int) However, the result of the above code cannot completely fill holes to the…
KimHee
  • 728
  • 2
  • 12
  • 22
4
votes
1 answer

RuntimeWarning: Cannot provide views on a non-contiguous input array without copying

when using skimage I get the following error: win = skimage.util.view_as_windows(x, windowSize, windowShift) C:\Program Files\Anaconda2\lib\site-packages\skimage\util\shape.py:247: RuntimeWarning: Cannot provide views on a non-contiguous input…
gabboshow
  • 5,359
  • 12
  • 48
  • 98
4
votes
1 answer

How to obtain the skeleton of a binary image with scikit-image

I want to draw the skeleton of the following image: I've tried with the following Python code: import cv2 from skimage import morphology, color import matplotlib.pyplot as plt image =…
Daniel Yan
  • 41
  • 1
  • 2