<div>Hi Moritz,</div><div><br /></div><div>Thanks for the answer.</div>All right, I will try that, although I thought it could work also for one class (keeping the rest unclassified).<div>I also tried rescaling my images to range 0-255, but that didn't solve the problem.<div>Still, it's strange that the reject map gives 100% (or close to) over the ROIs, I would expect the opposite...</div><div><br /></div><div>Will come back to say if adding more classes solves the problem when I try.</div><div>cheers,</div><div>Umberto<br /><br /><span>Il 21/12/15 14:29, <b class="name">Moritz Lennert </b> <mlennert@club.worldonline.be> ha scritto:</span><blockquote cite="mid:5677FEBF.2070301@club.worldonline.be" class="iwcQuote" style="border-left: 1px solid #00F; padding-left: 13px; margin-left: 0;" type="cite"><div class="mimetype-text-plain">On 20/12/15 14:43, Umberto Filippo Minora wrote:<br />>I have three maps which are 1) shortwave infrared reflectances derived<br />>from Landsat ETM+ (Data Type: FCELL); 2) cumulative solar radiation<br />>derived using "r.sun" from GRASS (Data Type: FCELL); 3) elevation map<br />>(DEM, Data Type: CELL).<br />>I am trying to perform a supervised maximum likelihood classification<br />>over these bands.<br />>So, first I grouped them using "i.group".<br />>Then I imported a shp with rock glacier areas, created a new column in<br />>its attribute table called "IDmaxlik" and assigned a value of "1" (int)<br />>to it.<br />>Then I converted the shp to raster with this command:<br />><br />>      v.to.rast in=rg_visible out=rg_visible use=attr<br />>attribute_column=IDmaxlik<br />><br />>and I used "i.gensig" to generate the signature file.<br />><br />>      i.gensig trainingmap=rg_visible group=perma_max subgroup=perma_max<br />>signaturefile=rg_sig<br />><br />>Finally, I run "i.maxlik":<br />><br />>      i.maxlik group=perma_max subgroup=perma_max signaturefile=rg_sig<br />>output=classification01 reject=classification01_reject<br />><br />>Each pixel of the output map ("classification01") is 1, as if the<br />>everything was classified as "rock glacier". Moreover, the reject map<br />>("classification01_reject"), has higher values (closer to 16, or 100%)<br />>over the same rock glaciers used as the region of interest than elsewhere.<br />><br />>Might be the problem related to the fact that "i.gensig" expected a clip<br />>of the RGB raster on the ROIs, rather than a mask?<br /><br />No, I think the problem stems from the fact that you only provide one class, so each pixel is attributed to that class. If the rest of the area is quite heterogeneous you should probably even create several other classes and respective training areas.<br /><br />Moritz<br /></div></blockquote></div></div>