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

Isolating the head in a grayscale CT image using Python

I am dealing with CT images that contain the head of the patient but also 'shadows' of the metalic cylinder. These 'shadows' can appear down, left or right. In the image above it appears only on the lower side of the image. In the image below it…
user8270077
  • 4,621
  • 17
  • 75
  • 140
0
votes
1 answer

Blur in LAB format

How can apply a gaussian blur on an image in (CIE)LAB format? RGB can be blurred with rgb_blurred = skimage.filters.gaussian(lab), but that doesn`t work on LAB (because of its first channel). Is there a way to blur images without converting them…
0
votes
1 answer

regarding extracting the segmented result

I have an image, and perform K-means-based segmentation against is using slic method. The code and result are attached. My question is that How can I extract the information for each segmented patch, such as its location, area, label, or related…
user288609
  • 12,465
  • 26
  • 85
  • 127
0
votes
1 answer

the warning message of using exposure.equalize_adapthist in scikit-image

While performing the Contrast Limited Adaptive Histogram Equalization, I got the following warning message. How to avoid it and what does it indicate? from skimage import exposure img_adapteq = exposure.equalize_adapthist(image_gray,…
user288609
  • 12,465
  • 26
  • 85
  • 127
0
votes
1 answer

skimage.io.imread behaving differently when giving a string or Path

I just stumbled upon a weird situation with skimage.io.imread. I was trying to open a MultiPage TIFF (dimensions: 96x512x512) like this: import argparse from pathlib import Path import numpy as np from skimage import io def…
piponazo
  • 478
  • 2
  • 4
  • 10
0
votes
3 answers

How do I tell if an image is gamma encoded when imported to numpy?

I am a bit confused about when an image is gamma encoded/decoded and when I need to raise it to a gamma function. Given an image 'boat.jpg' where the colour representation is labeled 'sRGB'. My assumption is that the pixel values are encoded in…
Jesse McMullen-Crummey
  • 3,175
  • 3
  • 8
  • 17
0
votes
0 answers

How to apply optical flow to an image?

I applied a function from open CV to have the optical flow between two images. Here is the two images, which I want to have their flow. This is the code (extracted from opencv doc) I used to extract an optical flow import cv2 import numpy as…
cthnguyen
  • 53
  • 7
0
votes
0 answers

Saved Numpy ndarray representation of an image takes more space

I'm doing something really simple: using the io function in skimage to read in an image, and then using the np.save functionality to save the array. Something really weird happens: the original image is only of 2mb, while the saved numpy ndarray…
Jack Shi
  • 131
  • 5
0
votes
0 answers

how to access image from a dataset using skimage? Is there any other alternate?

import tensorflow as tf import os import skimage train_data_directory = "F:/Projects/Tensorflow/Code/Training" directories = [d for d in os.listdir(train_data_directory) if os.path.isdir(os.path.join(train_data_directory, d))] labels =[] images =…
0
votes
2 answers

skimage is not defined in jupyter notebook despite having installed the module

I created a virtual environment and installed scikitimage but when i use jupyter notebook it says no modules named skimage. I installed scikitimage without using virtual enviroment but still jupyter can't find it. from skimage import color, io …
suleman butt
  • 11
  • 1
  • 5
0
votes
1 answer

How to tune Local Binary Pattern?

I am using LBP on grayscale images for facial expression recognition task. How can I figure out the best parameters (number of neighbour set points, and radius of circle) for LBP which will be used as the input of my CNN? p.s. Using skimage's LBP…
talha06
  • 6,206
  • 21
  • 92
  • 147
0
votes
1 answer

Finding contours and midpoints of color squares in an image

I have an image with color squares in it: I am trying find contours for the color squares, as well as the midpoints of the color squares to find the pixel value.
0
votes
2 answers

How to convert .tif image to .jpg using skimage

I'm trying to convert a .tif image in python using the module skimage. It's not working properly. from skimage import io img = io.imread('/content/IMG_0007_4.tif') io.imsave('/content/img.jpg', img) Here is the…
hopieman
  • 399
  • 7
  • 22
0
votes
1 answer

How to get box around contour using skimage.segmentation.felzenszwalb?

I'm trying to get a box around a segmented object on the edge of the image, that is, there is no contour around the segmentation because the object is only partially inside the image region. I use skimage.segmentation, find_boundaries,…
0
votes
1 answer

Get coordinates of polygon outline and polygon mask given vertex coordinates

Given a matrix containing a polygon mask (here a small and simplistic case): array([[0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 0], [0, 0, 1, 1, 1,…
cloudcrypt
  • 769
  • 5
  • 22
1 2 3
99
100