Research Article
A Study on Removing Cloud Drift of Sky-Sea Infrared Image Based on Agent
| <DetectCode> ⟶ <Init>; <DetectPair>∗; | | <Finish>; | | <Init> ⟶ DetectI = 0; DetectJ = 0; | | <DetectPair> ⟶ DetectI = DetectI + 1.0; | | DetectJ = DetectJ + 1.0; | | <Finish> ⟶ DetectResult = DetectI − DetectJ. | | (∗) means <DetectPair> can be repeated many many times. The typical period task can be described as follows after inserting detection code: | | // states the global variable that detection codes can use out function. | | while (1) // period task, repeat operation repeatedly | | { | | Init // test initialization, test variable zeroes | | t1; // the beginning a period, like sensor information | | // every task code, insert a detect pair: | | Detect Pair | | t2; | | t3; | | Detect Pair | | … … | | Detect Pair | | tn; // when algorithm finishes, voting is prepared | | Finish // standardize detect results | | r = vote(r, Detect Result); // vote with self-testing | | output(r); // output control information | | } |
|