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

Can't load tif images/Split tif image in OpenCV/Scikit-Image/Tifffile

I am currently trying to load a .TIF file in python and then save it as RGB and NIR image. This is the code I use/I tried: %matplotlib notebook import tifffile as tiff import cv2 from matplotlib import pyplot as plt import skimage.io import numpy…
KalvinB
  • 305
  • 1
  • 3
  • 11
0
votes
1 answer

Can morphology.remove_small_objects be used to remove small noise?

My binary image has lots of noise (small white blobs about 3-6 pixels in area). Can the function skimage.morphology.remove_small_objects() be used to remove these small blobs? In my experimentation, the function leaves the image unchanged. Am I…
sazr
  • 24,984
  • 66
  • 194
  • 362
0
votes
1 answer

modify a numerical array or an image based on the given threshold

I have an image, and would like to modify the image based on a given threshold. The function such as binary = image > threshold will create a binary image. What I want is the image pixels will remain the same if it is higher than the threshold.…
user288609
  • 12,465
  • 26
  • 85
  • 127
0
votes
2 answers

Unable to increase the region of interest of an image

I am trying to increase the region of interest of an image using the below algorithm. First, the set of pixels of the exterior border of the ROI is de termined, i.e., pixels that are outside the ROI and are neighbors (using four-neighborhood) to…
Beginner
  • 721
  • 11
  • 27
0
votes
1 answer

Dimension decreases after performing "pyramid_reduce" function. How to fix?

I am trying to downscale the image using "scikit-image". However I cannot show the downscaled picture through matplotlib.imshow function because of the dimension. Is there a way to prevent such dimension reduction? I put the script as well. import…
0
votes
0 answers

Confusion with the plotting of a grayscale image using matplotlib

I have this following function to plot any image. def draw_image(img, title, height, width): plt.figure(figsize = (height,width)) plt.title(title) imgplot = plt.imshow(img) Now I want to plot a normal RGB image and its Grayscale…
Protik Nag
  • 511
  • 5
  • 20
0
votes
1 answer

Rotating 2D grayscale image with transformation matrix

I am new to image processing so i am really confused regarding the coordinate system with images. I have a sample image and i am trying to rotate it 45 clockwise. My transformation matrix is T = [ [cos45 sin45] [-sin45 cos45] ] Here is the…
Anil Yadav
  • 149
  • 1
  • 14
0
votes
2 answers

How can same code running with same libraries produce different results when executed in raspberry pi and anaconda3 in windows?

i have run same code in syder which produce a result. i ran the same code in raspberry pi and the result is different. I have tried everything possible but it wont work.
0
votes
1 answer

Correcting shift in image data over time

I have some data (left image), with the second image taken at some t (right image). There is a shift in my images, with the masked portion of the image representing a physical piece that does not move relative to the 'rings' seen in the images (and…
kalle
  • 425
  • 1
  • 6
  • 17
0
votes
1 answer

Inpainting in multiple channels

I have a 3d matrix A=[mXnXl], which I want to inpaint, using a mask of mask=[mXn]. So each slice along the "l" is a 2D image (0-255 RGB range). I care about continuity along that axis as also along the 3rd dimenbtison. I use the inpainting with the…
0
votes
0 answers

Wrong binarization of corns' darker parts

I'm trying to binarize images of corn kernels using Otsu method, but some parts of the kernels are thresholded incorrectly. I also tried Gaussian blur but it doesn't really help. Is there anyway to fix this? Thanks. Here's my code: img =…
minhduc0711
  • 23
  • 1
  • 2
  • 6
0
votes
3 answers

Matlab's imgaussfilt equivalent in Python

I am trying to replicate Matlab's imgaussfilter behaviour in Python but I have been unable to reproduce the results. The docs don't help much since there is not explanation of what exactly is being done (for instance how is that function different…
Jorge Diaz
  • 491
  • 5
  • 11
0
votes
1 answer

What can I use to measure some properties in a 3D (x,y,z) ?Regionprops docu says it's only for (N, M) but I found information of a 3D regionprops PR

Link to regionprops documentation: https://scikit-image.org/docs/dev/api/skimage.measure.html#skimage.measure.regionprops PR of Regionprops info: https://github.com/scikit-image/scikit-image/pull/1505
Juan I.
  • 5
  • 2
0
votes
1 answer

regarding the ways of removing surrounding background areas during processing the image

The attached image, showed as follows It includes some surrounding areas that represents the noise or background introduce while getting the image. How to remove this part while processing the image. For instance, when I try to segment the…
user288609
  • 12,465
  • 26
  • 85
  • 127
0
votes
2 answers

regarding understanding the clustering result of slic method for a given image

After viewing the result of running slic method over an image segments = slic(img_adapteq, n_segments = 250, sigma = 5,compactness=0.1) I am curious about one segment cluster that the method returns. In the following image, I use an angle to point…
user288609
  • 12,465
  • 26
  • 85
  • 127
1 2 3
99
100