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

Scikit image color filtering and changing parts of image to array

I want to do some Optical Mark Recognition using scikit-image. I am looking for 2 functions Lets say I have an image that looks like this: The way I would detect it is using filters to clean the image: (ie bilateral and Gaussian filtering for noise…
user3084006
  • 5,344
  • 11
  • 32
  • 41
5
votes
1 answer

scikit-image save image to a bytestring

I'm using scikit-image to read an image: img = skimage.io.imread(filename) After doing some manipulations to img, I'd like to save it to an in-memory file (a la StringIO) to pass off to another function, but it looks like skimage.io.imsave requires…
Jason Sundram
  • 12,225
  • 19
  • 71
  • 86
5
votes
2 answers

It is possible deleting Skeleton small branches in opencv or scikit image?

Is it possibile deleting small branches during skeleton procedure? As in this picture: http://felix.abecassis.me/wp-content/uploads/2011/09/skel_opencv.png Only O letter is perfect but not all the others letters. THere is a way during the procedure…
5
votes
4 answers

How can I get the "smart sharpen" effect on my images with python?

I am wondering how to smart sharpen an image using python or any related image library like ndimage ,skimage or even PIL.I could find methods that actually sharpen my image but with a lot of noise and pixelating when zooming in .So since I know…
Someone Someoneelse
  • 487
  • 2
  • 8
  • 27
4
votes
2 answers

Detect wrinkle with Hessian matrix

Currently, I am trying to use Hessian matrix to detect wrinkles on the forehead. How could I remove out noises around these wrinkles? Below are my current code and result. from skimage.feature import hessian_matrix, hessian_matrix_eigvals image =…
4
votes
0 answers

Block Artifact Grid of an Image

I have been reading this paper where they have used Error Level Analysis (ELA) and Block Artifact Grid (BAG). I have found a way to do the ELA using skimage from here I want a final output of the BAG part showed in the diagram below [Look at the BAG…
Vivek Kalyanarangan
  • 8,951
  • 1
  • 23
  • 42
4
votes
1 answer

Finding powerlines in LIDAR point clouds with RANSAC

I'm trying to find powerlines in LIDAR points clouds with skimage.measures ransac() function. This is my very first time meddling with these modules in python so bear with me. So far all I knew how to do reliably was filtering low or 'ground' points…
user16541277
4
votes
0 answers

How can I solve problems installing packages in python (Failed building wheels)?

I'm trying to install several packages in Google Colab (python 3.7) and I find some errors. The packages I'm installing…
4
votes
1 answer

Difference of Gaussian - variable results

I am trying to get my head around this one. I am quite new to python and even more to image filters and manipulation. I'd like tu use OpenCV to apply this function : def gaussianFilter(img, kernel_size=(3,3), standard_dev=1): return…
FloF5ve
  • 63
  • 7
4
votes
2 answers

ModuleNotFoundError: No module named 'skimage.measure.simple_metrics'

I am using google colab. I installed scikit-image. When I execute this code, I am getting error: ModuleNotFoundError: No module named 'skimage.measure.simple_metrics' import math import torch import torch.nn as nn import numpy as np import…
4
votes
1 answer

Converting a 12-bit grayscale image to 8-bit per channel color image in Python

I am looking for suggestions or best practices to follow in terms of converting a 12-bit (0-4096) grayscale image to a 3-channel 8-bit color image in Python in order to pass it into a convolutional neural network. With 8-bit RGB, I essentially have…
Joe
  • 41
  • 1
4
votes
0 answers

How to efficiently read part of a huge tiff image?

I have a collection of rather large tiff files (typical resolution is 30k x 30k to 50k x 50k). These have some interesting properties: 1. they contain several different resolutions of the same image, and 2. the data seems to be compressed as JPEG…
Alex I
  • 19,689
  • 9
  • 86
  • 158
4
votes
1 answer

How does the skimage.filters.laplace function work in Python?

I am trying to figure out the kernel being used in skimage.filters's laplace function. I know that a Laplacian filter is based on matrix convolution, but I just can't seem to make sense of the values produced by skimage.filters's laplace…
Ethan Yim
  • 85
  • 1
  • 6
4
votes
1 answer

Filter 2D array and return co-ordinates from intermediate

I have a 2D array of zeros with some positive integers at (1,6) and (2,7): [[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 2. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [0. 0. 0. 0. 0. 0. 0. 2. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [0. 0. 0.…
kynnemall
  • 855
  • 9
  • 26
4
votes
2 answers

Remove bounding box outline

I have this image When I apply from skimage import filters result_sobel = filters.sobel(image) The image is How can I remove the bounding box outline so it blends with the background? Ideally, the output will be the black background, and the red…
PolarBear10
  • 2,065
  • 7
  • 24
  • 55