As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [scikit-image]

Image processing in Python

Filter by
Sorted by
Tagged with
1 vote
2 answers
268 views

Computing vegetation indices using scikit-image: "Divide by zero" warning prevents Red Green Index calculation

I am attempting to locate all green pixels in an image by converting vegetative indices using the scikit-image module in python. However, when I try to compute the Red-Green index, I get the following ...
s_o_c_account's user avatar
7 votes
0 answers
370 views

Creating a seamless vector dataset from raster with gdal, R or Python

I'm trying to create a seamless vector dataset from an integer raster. "Seamless" as in: not gaps between features and no overlapping features. The tools gdal_polygonize, pkpolygonize, terra:...
Ratnanil's user avatar
  • 903
0 votes
1 answer
812 views

Apply Canny edge filter on raster failes with scikit-image

I have raster with one band and I would like to do edge detection with Canny edge filter. This is my raster: I have opened it with rasterio and covert it into array : img=srs.open("raster.tif&...
Reut's user avatar
  • 1,910
1 vote
1 answer
2k views

Extracting the least area image around a Shapely polygon, with rotation allowed

I have a Shapely polygon polygon_geom = shapely.wkt.loads(feat['wkt']) such as: I can map it onto an image polygon_pts = np.array(list(polygon_geom.exterior.coords)) plt.imshow(img_array_pre) ...
Lars Ericson's user avatar
1 vote
0 answers
207 views

Converting non projected x,y coordinate into a specific projection in a 2D array

I created a 2D array and after applying Gaussian filter I find centroid of all the connected pixels with values equal to 1 and then save it with the projection EPSG:3413. Using skimage.measure.label, ...
webapp's user avatar
  • 209
0 votes
0 answers
639 views

How could I avoid extracting incorrectly closed contours from a raster with angled sides?

I'm updating a Python script which currently calls gdal_contour as a subprocess to extract contours. I'd like to replace gdal_contour with skimage.find_contours. However the output of the GDAL script ...
user2950747's user avatar
7 votes
1 answer
13k views

Performing object based image classification in Google Earth Engine?

I am trying to perform an image segmentation using Google Earth Engine. I have performed OBIA in the past using python and scikit-image (skimage.segmentation.felzenszwalb) , but not sure how to do ...
user44796's user avatar
  • 1,871