Try to decrease number of your training samples. I am not sure what is it but when I decreased on value of 20 classification run out without problems and there was no blank screen!!
I am not sure what is training samples - are they values of pixels inside your training classes (vectors)?
Hi, thanks for the response. I’ve solved this problem now. It has to do with reprojecting the image before classification. Once the reprojection (to WGS84) is done the classification works fine.
And yes - training pixels are the pixel values inside the vector polygons.
I am having another issue with supervised classification, the feature bands selection are not visible (please refer to image), therfor I just can select which band I need. I created thenew vector containers and used to polygon tool to select the zones.
You need to resample the bands to a common size. The processor can’t handle the data when the dimension of the source bands is different.
You can either use the generic Resampling operator in Raster / Geometric Operation which is faster or the S2 specific one in Optical / Geometric which is slower but handles the view angles more accurate.
@andy , @ABraun I have exact problem after running RF classification I got a blank raster image and question mark in frequency. I saw our member mention about projection.
(maybe the solution) Then I try to reprojection but I left everything is default particularly the projection is Geographic Lat/Lon (WG84) [Dont choose UTM / WGS84 (Automatic)]. Then the classifier work well. (I dont know what happend next if we export into QGIS)
It’s kind of a bug. The data must be projected into geographic coordinates first.
Doesn’t matter for the later use of QGIS. You can still open it there and overlay it with other data in UTM projection. Maybe you need to reproject the result back into UTM if you want to intersect this data with other rasters/vectors in QGIS.
Thanks brother ABraun! I already tried I have to reprojection the result back into UTM otherwise it is not overlay with other shapefile which has UTM/WGS84.
I have one more question. As show in image below (red rectangle), the surrounding lake was incorrectly classified as Mangrove. How to improve this situation? I found on QGIS, we can directly edit raster. But does anybody have other options?
I would like to export the KNN classification results (shown in red below ) in a text file, however I can’t do it with the export masks tool. Is there any other way pls?
I hope this is the right topic to discuss it…
Is there a reason that supervised classification in snap does not have a ROI-mask as unsupervised has? Am I missing something or is there another side-way to accomplish ROI?
as a work-around: you could import the vector and declare it in the valid pixel expression of the input bands.
Afterwards, your classification will only be performed on the valid pixels left.
That’s a good solution. I will work it and I will see if I can implement it in batch processing with graph builder but I have my doubts. Working those few weeks with graph builder I find it hard to accomplish more complex operations in classification with sentinel-2 products.
i have de same mistake, after the instalation of the version SNAP 7.0 about supervised qualificationRF . Now my doubt is if, that projection has to be made after or before training pixel ?
Note: of course, the steps taken before the training pixels are resampling and subset in the imagen