Optical remote sensing image cloud judging result correcting method based on context

The invention discloses an optical remote sensing image cloud judging result correcting method based on context. No probabilistic model is need building, the design is carried out aiming at cloud judging problems, and judging results and background information of adjacent modules are used at the same time to correct an original judging result. The optical remote sensing image cloud judging result correcting method based on the context includes the steps: firstly, reading in related data to be processed, wherein the related data to be processed comprises a partitioned index matrix, a partitioned gray mean matrix and background information of an original image; secondly, generating a judging value of Block by using a judging value of Tile, composing a Block index matrix, and constructing a Block gray mean matrix according to the partitioned gray mean matrix; thirdly, utilizing the Block with the judging value of pretty sure cloud and pretty sure ground features to correct the Block judging value which is uncertainty; fourthly, using target context and scene context to judge background of a processed object, to reject false-alarm at the junction of ground features, to reject false-alarm of cloudlet and adjust an adjacent target of the object which is judged to be certainty, and finally whether the Block being cloud or not is judged out.