βFor = 1 to | βFor = 1 to | For = 1 to 4 //window size = 4 Γ 3 | βββββββββββββFor = 1 to 3 | ββββββββββββIf ( == 1 && == 1) | βββββββββββββββββ= | ββββββββββββElse if( == ) | βββββββββββββββββ = ;//next | ββββββββββββ//[Dvw1 = 1 0 0 0] | ββββββββββββElse | ββββββββββββ; | ββββββββββββ// next [Dvw2 = 0 1 0 0] | ββββββββββββEnd if | ββIf ( == 1 && == 1) | ββ; | ββElse if( == 1 && > 1) // first rowβsecond window calculation | ββ; move to the next pixel β + 1; pixel dataβreads in next column of pixel and | ββold data is moved in the () plane-PE_array from () to ( + 1);//[ = 0 1 0 1] | ββElse if (j==k ) βββ// for next | ββ; // move to the next pixel + 1; pixel dataβreads in next row of | ββ// pixel and old data is moved in the () plane-PE_array from () to () | ββ//[ = 1 0 1 0] | ββEnd if | ββIf ( ==1 && == 1) | ββ = 0; | ββElse if (k < 3) | ββ; | ββElse | ββ; | ββEnd; | End For ; |
|