Questions tagged [image-segmentation]

Image segmentation is the process of dividing an image into multiple regions (clusters or sets of pixels), based on some criterion.

Filter by
Sorted by
Tagged with
1 vote
1 answer
40 views

Selecting a specific land cover type based on colors in GEE

I want to select a specific land cover type in a land cover map obtained from the GEE dataset. Because I know the corresponding hex colour code, I tried the colour code as a condition to filter the ...
user avatar
  • 11
2 votes
1 answer
22 views

How to classify tree cover overlapping roofs in eCognition

This might be a fairly simple question, but I'm new to eCognition. I'm using Developer 10.2. For canopy that overlaps rooftops, I need to define these areas as separate objects and classify as canopy. ...
user avatar
0 votes
1 answer
37 views

Does GRASS's i.segment use all bands of data in a GeoTiff?

I'm trying to understand more about how the i.segment algorithm works. Most importantly, does it use all of the available bands in an image? The documentation notes you must specify a group. When I ...
user avatar
0 votes
0 answers
24 views

How to increase accuracy of object based image classification result in QGIS Orfeo toolbox?

I am working on the subset of a Sentinel 2 image to identify solar panels from the satellite imagery. So I used the OTB plugin in QGIS Desktop 3.20.3 for segmentation and object based classification. ...
user avatar
0 votes
0 answers
21 views

Sentinel 2 TIFF image for model prediction of crop type

I am new to the GIS image data. I recently created a prediction model based on the pixel value given in csv file of Sentinel 2 bands (12), classification was given for the crop type. I am struggling ...
user avatar
  • 1
0 votes
1 answer
39 views

Orfeo Toolbox segmentation - increasing n segments

I'm checking out the parameters for Orfeo's Segmentation tool and I'd like to know how to increase the number of segments that are output in the vector output. https://www.orfeo-toolbox.org/CookBook/...
user avatar
  • 575
0 votes
1 answer
238 views

Object-Oriented LULC Classification in Google Earth Engine

I am testing a object-oriented LULC classification approach in Google Earth Engine, using the code available at the following link: https://code.earthengine.google.com/4032fe102252b285ec249f395d0d6d0f....
user avatar
  • 51
2 votes
1 answer
96 views

nDSM tree detection using scipy watershed

I am trying to generate segments with single trees in a normalized surface model (nDSM). I tried using scipy.ndimage to achieve this, but the segmentation results are not precise. I would like a ...
user avatar
  • 31
1 vote
1 answer
562 views

Image Segmentation and Classification with Google Earth Engine

I'm new to using Google Earth Engine and I obtained the following code from Medium and tried to update it with the AOI and training data for my specific area. I am trying to classify landcover for an ...
user avatar
  • 21
1 vote
1 answer
139 views

Using GRASS i.segment in Python 3 stand alone script on Windows10

I installed GRASS GIS 7.8.1 on Windows 10 using a OSGeo4W. I would like to use in a stand alone Python 3 script the i.segment GRASS tool. I saw some related questions (e.g., Using GRASS GIS in Python ...
user avatar
  • 1,565
1 vote
1 answer
455 views

Image Segmentation tiff files for Object Detection

I have tiff files generated fro 12 bands of sentinel-2a data. I want to label each pixel of the tiff files as belonging to copper mine or normal. After labelling I want the image format to stay as it ...
user avatar
0 votes
1 answer
32 views

How to estimate overlap of certain pixel colors in a raster image and a linestring shape added on top of it?

I am trying to calculate how much of the electric feeders exist underneath tree covers. I am using NAIP infrared satellite imagery and have a shp file for a feeder circuit. Like so: I need to find ...
user avatar
1 vote
0 answers
195 views

eCognition export samples as a shapefile problem

I need sample shapefile for the other project but when I try to export it, it gives me an error like domain is empty(no images object available). How can I get the samples as shapefile?
user avatar
2 votes
1 answer
29 views

Scene boundary issue when reducing sentinel 1 in natural values vs dB

I have written a function that smooths sentinel 1 images by reducing across clusters created from a sentinel 2 median image, and then reduces the sentinel 1 collection to the p5 value. When I run the ...
user avatar
  • 21
0 votes
1 answer
2k views

Applying less than and greater than threshold in image segmentation in Google Earth Engine

I am trying to segment the images based on the threshold values. For instance, I want to put a threshold range between > 800 and < 1200, but with my existing code in Google Earth Engine, I can ...
user avatar
  • 111
0 votes
0 answers
789 views

ArcGIS Pro Classify Raster Failure ERROR 002834

I am trying to run the Classify Raster tool in ArcGIS Pro 2.5 using an .ecd file generated from the ISO Classifier tool. I am using a composite of Sentinel bands run through the PCA tool and an ...
user avatar
1 vote
1 answer
269 views

Using thematic layer to restrict segmentation and classification in eCognition [duplicate]

This question has been asked before as Using thematic layer for segmentation in eCognition?. However, I have not been able to resolve the issue using the answer provided. Can someone clarify the ...
user avatar
  • 21
0 votes
1 answer
293 views

Orfeo Toolbox error

I'm using segmentation (mean-shift) tool in Orfeo Toolbox with QGIS I used a subset of pansharpened image from Worldview3 after orthorectification. But, I got same error whenever I tried: 2020-07-02 ...
user avatar
1 vote
1 answer
848 views

Earth Engine, how to convert 0 pixel values to transparent or nodata?

I'm using the following snippet to convert canny edges to black and white to highlight boundaries. However, I want to fill the black area with transparent or NODATA, is there a way to do this in EE? ...
user avatar
0 votes
0 answers
64 views

Extract house and road using image Google Earth

where I live does not have gis data, only images from google earth, so I want to take advantage of this image to build gis data,it is local's road, river and house. I am a beginner with this job. I ...
user avatar
  • 111
1 vote
1 answer
42 views

How to preprocess Bing Singleband Satellite image for eliminating different exposure tiles problem

I have used around 200 sqkm high resolution single band colour Bing image for object based image analysis on ecognition developer. But due to different tile based exposure made it worse to classify. ...
user avatar
  • 33
0 votes
0 answers
39 views

Superpixel segmented image boundary into SpatialPolygons format

I have an image mask segmented through superpixels algorithm like this. I want to just extract its boundary and save it as a shapefile SpatialPolygons for using spatstat. Can anyone help on how to go ...
user avatar
  • 101
0 votes
1 answer
229 views

How to run multi level segmentation for LULC in process tree, eCognition software

Can we run the eCognition multi level (level 1 ,level 2,...) segmentation and classification in the same process tree? I want different outputs to show for each levels in a process tree. I'm in the ...
user avatar
3 votes
1 answer
6k views

Pixel coordinate to world coordinates using Python

I have developed a semantic segmentation method to map certain objects in aerial imagery. Throughout this project I download pictures (4800x4800 pxs) where I know the min_x, min_y, max_x and max_y in ...
user avatar
  • 165
2 votes
0 answers
86 views

Use edge detection to segment images

I have an RGB from which I detected the edges and I'm curious if I can use it to optimize a segmentation or as a mask to improve the segmentation to identify cultivated fields. Could you do that? If ...
user avatar
  • 365
6 votes
1 answer
613 views

Extracting tree stems from LiDAR point clouds using 'bottom-up' approach

Let me preface by recognizing that there are some previous questions that are related but different than mine because they are focused specifically on tree crowns rather than stems here and here. I ...
user avatar
  • 2,406
2 votes
1 answer
2k views

Creating a shapefile from a numpy array

I was following this tutorial: http://www.acgeospatial.co.uk/k-means-sentinel-2-python/ on how to generate an unsupervised classification for sentinel-2 images. img_ds = gdal.Open('data/products/...
user avatar
3 votes
1 answer
282 views

ArcGIS Pro 2.4.0 Image Segmentation - Higher spectral and spatial detail for high-resolution images?

I was watching a video regarding image segmentation in ArcGIS Pro 2.4.0. It was an ESRI event (2018), so the presenters were ESRI employees. Here's the video I am referring to: https://www.youtube.com/...
user avatar
  • 463
0 votes
1 answer
204 views

Could not create GDALDataset

I'm doing several segmentation tests between satellite and drone images with rsgislib. On the satellite images I had no problem but when I try the drone images the following error appears after the ...
user avatar
  • 365
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) ...
user avatar
2 votes
2 answers
849 views

Object-based Classification in Orfeo ToolBox

I have a multispectral camera with 5 bands (r, g, b, red edge, NIR) and I would like to classify plants object based with Orfeo ToolBox. I am flying with the drone close to the plants and have an ...
user avatar
  • 81
0 votes
1 answer
37 views

arcpy.sa.SegmentMeanShift() Creates segments with values outside of the range of original raster (stretched?)

I'm using arcpy.sa.SegmentMeanShift() to produce a segmented raster in ArcGIS 10.7.1. The segments in the output raster have values outside the range of values (1 to 248) in the input raster (-22 to ...
user avatar
3 votes
1 answer
2k views

Is Google Earth Engine SNIC Segmentation algorithm inconsistent?

I have been using GEE for about a month now and I ran into some issue I am trying to use OBIA classification based on this presentation by Sai Cheemalapati, EEAI 2019. The main problem is when I ...
user avatar
2 votes
0 answers
73 views

Segmentation in OTB gives blank rectangle as output

I am trying to segment a raster image to get a vector output. I am using OTB 6.6.1 in QGIS 3.4. In the segmentation window, I selected the input raster which is a 3 band (true colour) sentinel 2 image ...
user avatar
1 vote
0 answers
56 views

Selecting certain segments when creating training set for classification in ArcGIS?

I am trying to classify an RGB image in ArcGIS 10.7. When I try to use the 'select segment' option to create a training set I am allowed to pick only certain segments to add to my training set. For ...
user avatar
3 votes
0 answers
99 views

GRASS GIS Segmentation issue on UAV image

I tried i.segment to perform segmentation on a part of UAV orthophoto image, but this always results in stripe-like rectangle segments which I do not expect. Could anyone figure out what happens? ...
user avatar
1 vote
0 answers
781 views

KeyError: "The name 'ImageTensor:0' refers to a Tensor which does not exist. The operation, 'ImageTensor', does not exist in the graph."

I'm trying to use ArcGIS Pro 2.3 and this tutorial (https://medium.com/geoai/high-resolution-land-cover-mapping-using-deep-learning-7126fee571dd) to use the function "Classify Pixels Using Deep ...
user avatar
  • 11
0 votes
1 answer
428 views

Batch changing of Raster Bands of Multiple Rasters in ArcGIS Desktop?

I have a ton of rasters in my ArcGIS project, each with 4 bands. At the moment, I am changing the raster bands, one by one, for each file: Red becomes Band 2 Green becomes Band 1 And I am setting ...
user avatar
  • 319
1 vote
0 answers
71 views

Does contrast stretching help image segmentation and classification?

I am trying to identify and classify marine litter from drone RGB images at beaches. Due to the small size of litter and only having RGB images available, my supervisor recommended to carry out ...
user avatar
1 vote
0 answers
196 views

How to pixelwise annotation with QGIS

I need to create masks with QGIS of hedgerows for satellite images (raster) segmentation. I tried with the SCP plugin but I can't use growing algorithm because I only want to keep hedgerows, not ...
user avatar
1 vote
0 answers
48 views

NoData cells appeared in segemented raster

I am trying to classify an aerial image of a dike into grass and weeds. I used an aerial RGB image of 10 cm resolution being a TIF file. This aerial image is cleaned and contains no gaps. Only outside ...
user avatar
0 votes
1 answer
685 views

GLCM measure in an object-based classification?

I am trying to classify agricultural fields with randomForest model. I will conduct an object-based classification. To do so, in the code by Ned Horning, I provide the boundaries in a shapefile. The ...
user avatar
1 vote
1 answer
651 views

How to extract 1 band image (Boundaries) in Google Earth Engine Code Editor

I am quite new in remote sensing and trying to get boundaries of fields to build a prediction model in R. I tried Canny and Hough algorithms but the results are not satisfying. Lastly, I tried the ...
user avatar
2 votes
0 answers
47 views

Stacking lidar-derived height raster as ancillary data for segmentation in ENVI?

I get a a black and white image after following these steps. Does anyone know why I'm not getting a color aerial image beneath the mask? My setup consists of these steps: I mosaicked several NAIP ...
user avatar
1 vote
1 answer
1k views

Google Engine - Segmentation

From the Google Engine scripts, Is it available any Segmentation tool like the ArcMap "Segmentation Mean Shift" from ArcMap? I´m looking for crop-fields limit detection. I tried the SNIC one ...
user avatar
0 votes
1 answer
265 views

OTB Orfeo ToolBox - TrainImagesClassifier ERROR ITK

When i use in QGIS 3.6 TrainImagesClassifier i obtain an error on vector file class :
user avatar
1 vote
1 answer
178 views

Selecting segments from segmented layer using ArcMap?

Is there a way to select the segments from a segmented layer in ArcMap? I've created a segmented layer by running Segment Mean Shift, but I can't seem to find a way to select or isolate the segments....
user avatar
  • 203
3 votes
0 answers
248 views

Extract water areas from aerial photogrammetry DEM in QGIS

We are working with peatland restoration sites providing aerial photogrammetry of the restoration progress. We want to differentiate between areas water and bare peat which can look very similar in ...
user avatar
  • 89
3 votes
1 answer
202 views

Orfeo mshift segmentation asks for condition

I'm trying to run a segmentation using the mean shift. I leave all the parameters as default, but when I run it, it says "Wrong or missing parameter value: Condition". Condition is not a parameter for ...
user avatar
  • 31
2 votes
0 answers
1k views

Classifying image using image segmentation in google earth engine

I am trying to classify a Landsat 8 image in google earth engine. I have to classify them object based, since I am building on an earlier research where they have used object based classification. ...
user avatar