Questions tagged [scikit-image]
Image processing in Python
7
questions
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 ...
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:...
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&...
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)
...
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, ...
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 ...
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 ...