Generates a set of stratified random points for accuracy assessment.

30 views
Skip to first unread message

Beatriz Pierri Daunt

unread,
Apr 7, 2017, 10:03:54 AM4/7/17
to RSGISLib Support
Dear all,

I would like to generate a set of stratified random points for accuracy assessment, considering each class area

I could not understand the difference between this two options:

rsgislib.classification.generateStratifiedRandomAccuracyPts(inputImage, outputShp, classImgCol, classImgVecCol, classRefVecCol, numPts, seed, force)

Generates a set of stratified random points for accuracy assessment.

Where:

  • inputImage is a string containing the name and path of the input image with attribute table.
  • outputShp is a string containing the name and path of the output shapefile.
  • classImgCol is a string speciyfing the name of the column in the image file containing the class names.
  • classImgVecCol is a string specifiying the output column in the shapefile for the classified class names.
  • classRefVecCol is a string specifiying an output column in the shapefile which can be used in the accuracy assessment for the reference data.
  • numPts is an int specifying the number of points for each class which should be created.
  • seed is an int specifying the seed for the random number generator. (Optional: Default 10)
  • force is a bool, specifying whether to force removal of the output vector if it exists. (Optional: Default False)

and:

rsgislib.classification.popClassInfoAccuracyPts(inputImage, inputShp, classImgCol, classImgVecCol, classRefVecCol)

Generates a set of stratified random points for accuracy assessment.

Where:

  • inputImage is a string containing the name and path of the input image with attribute table.
  • inputShp is a string containing the name and path of the input shapefile.
  • classImgCol is a string speciyfing the name of the column in the image file containing the class names.
  • classImgVecCol is a string specifiying the output column in the shapefile for the classified class names.
  • classRefVecCol is an optional string specifiying an output column in the shapefile which can be used in the accuracy assessment for the reference data.

Thank you very much
Beatriz
PhD Candidate

Instituto de Geociências e Ciência Exatas (IGCE)
Universidade Estadual Paulista (UNESP)
Rio Claro, SP - Brasil

Pete Bunting [pfb]

unread,
Apr 11, 2017, 5:43:39 PM4/11/17
to Beatriz Pierri Daunt, RSGISLib Support
Dear Beatriz,

You want rsgislib.classification.generateStratifiedRandomAccuracyPts this will generate the points. Looks like an error in the documentation, rsgislib.classification.popClassInfoAccuracyPts populate class information on to an existing set of points rather than generating a set of points.

Best wishes,

Pete
****************************************************
* Dr Pete Bunting
* Reader in Remote Sensing
* Earth Observation and Ecosystem Dynamics Group
* Department of Geography and Earth Sciences
* Aberystwyth University
* Aberystwyth
* Ceredigion
* SY23 3DB
* UK
*
* Ph: +44 (0) 1970 622615
* Mob: +44 (0) 7917 842743
* Email: p...@aber.ac.uk
* ORCID: http://orcid.org/0000-0002-7435-0148
****************************************************
"Please consider the environment before printing this email or any documents attached”
> --
> You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
> To post to this group, send email to rsgislib...@googlegroups.com.
> Visit this group at https://groups.google.com/group/rsgislib-support.
> For more options, visit https://groups.google.com/d/optout.



--------------------------------------------------------------------
Un o’r 4 prifysgol uchaf yn y DU a’r orau yng Nghymru am fodlonrwydd myfyrwyr.
(Arolwg Cenedlaethol y Myfyrwyr 2016)
www.aber.ac.uk

Top 4 UK university and best in Wales for student satisfaction
(National Student Survey 2016)
www.aber.ac.uk
Reply all
Reply to author
Forward
0 new messages