I wondering if any of you can explain why I am not getting any entries in the shape file produced by the OTB segmentation algorithm. I have downloaded a set of Sentinel 2LA from the European Space Agency. Converted them for spectral reflectance using the SCP Semi Automated Classifer plugin and clipped them after conversion. The output of the algorithm is as follows:
The input file is the virtual band set - that was produced in SCP Semi-Automation Classification.
I am running the following Plugins and versions of QGIS:
QGIS code revision
EPSG Registry database version
PostgreSQL client version
Windows 10 Version 2009
It seems that there are zero values in your Sentinel image stack. Have you checked that the image has the correct values and that it’s not made up entirely of zero values?
There are several things you can try:
Check your vrt on Qgis by checking its values
Use the GDAL tool ‘fill null values (nodata)’ to improve your image
Try segmentation only on an S2 L2A tiff image to see if it’s the vrt that’s blocking or the image itself.
It may be the process you have carried out on SCP that makes the image uninterpretable for the tool.
It seems like you’re facing an issue with the Orfeo ToolBox (OTB) segmentation algorithm in QGIS. Here are a few suggestions to troubleshoot the problem:
Check Algorithm Parameters:
Ensure that you have set the segmentation algorithm parameters correctly. This includes parameters such as scale, spatial radius, and spectral radius. Adjusting these parameters might affect the results.
Review Input Data:
Double-check that the input data (virtual band set produced by SCP) is correctly formatted and has the expected values. You can use QGIS to inspect the raster values and see if they match your expectations.
Test on a Subset:
Instead of processing the entire dataset, try running the segmentation algorithm on a smaller subset of the data. This can help identify if the issue is related to the algorithm itself or if it’s specific to the input data.
Update OTB and QGIS:
Ensure that you are using the latest versions of both QGIS and the OTB plugin. Sometimes, updating to the latest version can resolve compatibility issues and bugs.
Check OTB Logs:
Look for any error messages or warnings in the OTB logs. You can find these logs in the processing toolbox under “History” or “Log” depending on your QGIS version. Logs might provide insights into what went wrong.
Consider External Factors:
Check if there are any issues with file permissions or access to temporary directories. Sometimes, external factors can affect the output of geospatial algorithms.
Consider posting your issue on QGIS or OTB forums or mailing lists. The community might have users who faced similar problems or developers who can provide assistance.
Refer to the documentation of both SCP and OTB for any known issues or special considerations when using them together.
If the issue persists after trying these steps, providing more specific details about the error messages or log entries could help in further troubleshooting. Additionally, reaching out to the QGIS or OTB community forums for assistance is a good idea.