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

What does this image-kernel correlation matrix represent?

I am experimenting with some computer vision techniques, specifically feature detection. I am trying to identify features by conducting auto-correlation between an image and a feature-kernel. However, the resulting correlation-matrix doesn't make…
0
votes
2 answers

Detect ellipse parameters from a given elliptical mask

I'm following the tutorial from the skimage website to detect edges from a mask and then get the ellipse perimeters. However, when I run this code I get this: I've reduced the threshold in the hough_ellipse function to 100 because that's the…
0
votes
2 answers

How to show and save output images using skimage and numpy?

def show_image_in_region(region): minr, minc, maxr, maxc = region.bbox plt.imshow(binary_imag[minr:maxr,minc:maxc]) for i in range(0,5): show_image_in_region(image_blocks[i]) I have multiple output images which I want to save and…
0
votes
1 answer

How to plot picture with a colored segmentation and alpha channel?

I want to plot a segmentation with its a picture with a certain alpha channel. I got my segmentation in red, but when I superpose the two pictures, the white part impacts my picture. How to consider the segmented part?
user3601754
  • 3,792
  • 11
  • 43
  • 77
0
votes
1 answer

Expected 'Py_ssize_t' but got 'long'

I'm reimplementing SLIC for Image Segmentation just for fun. But I'm lazy and I do not want to write a function to make all cluster connected so I decide to use _enforce_label_connectivity_cython() from skimage but I get an error of Buffer dtype…
Karots96
  • 57
  • 6
0
votes
1 answer

How do you add Gaussian Noise to a tif image file in python?

I am trying to add Gaussian noise to a set of tif files. I have used both scikit-image and cv2. Scikit-Image: noise_img = random_noise(np_img, mode='gaussian', seed=None, clip=True) CV2: gauss = gauss.reshape(np_img.shape[0], np_img.shape[1],…
Aryan Indarapu
  • 19
  • 1
  • 1
  • 6
0
votes
0 answers

Deep Learning syntax error in skimage.morphology

i have a piece of python code that is intended to extract letters and label each region that contains an image. edit: I'm using google colab I get the following error: print label_image.max() ^ SyntaxError: invalid syntax i've…
user13362111
0
votes
1 answer

separate_stains output of one channel and conversion to grayscale

I am using color deconvolution to identify the red pixels in a histology image, but the output values from separate_stains appear to be in a format of both positive and negative values rather than a grayscale 0-255 value scale. What is the format of…
AMM
  • 2,195
  • 2
  • 20
  • 28
0
votes
1 answer

Question regarding the implementation of the paper " guided random walks" weighing functions

I'm working on the implementation of the paper: Segmentation by retrieval with guided random walks: Application to left ventricle segmentation in MRI. I tried to modify the weights functions mentioned in Scikit-Image random walker algorithm to…
Bilal
  • 3,191
  • 4
  • 21
  • 49
0
votes
1 answer

Random walker algorithm how a gray-level image can be 3D?

I was reading the source of the random walker algorithm in scikit-image library, and it's written there that: Parameters data : array_like Image to be segmented in phases. Gray-level `data` can be two- or three-dimensional My question…
Bilal
  • 3,191
  • 4
  • 21
  • 49
0
votes
0 answers

Can i iterate over an image while ignoring black pixels?

I have a segmented image using SLIC from scipy and for every superpixel i get an image where only that superpixel is colored and the rest of the image is black. I want to iterate ONLY on the colored pixels from that one superpixel. I have tried…
0
votes
1 answer

KeyError: in multi label U-net

I have one image as input and two masks, I used multi label Unet, the training process works without any problem but when I'm trying to get the prediction Id encountered the error (KeyError: ) for test generator I used the pice of cod def…
0
votes
0 answers

Skimage Image Segmentation

I have a bunch of SEM images that I'm trying to segment to search for features. This is one of those things that's obvious to a person looking at it but less so to a computer (at least one coded by me!). I was hoping that someone might give me a way…
Dr Xorile
  • 967
  • 1
  • 7
  • 20
0
votes
1 answer

generate an overlay against a given image in OpenCV or Scikit-image

given an image, are there any ways to generate a grid that can be overlay against the original image. How to do it either in OpenCV or scikit-image?
user288609
  • 12,465
  • 26
  • 85
  • 127
0
votes
1 answer

Error during reading an image using skimage

I have been trying to read a bunch of images from a specific path , the code I am using is ~ images = [os.path.join(folder_path, f) for f in os.listdir(folder_path) if os.path.isfile(os.path.join(folder_path, f))] num_generated_files = 0 while…