On 4=D4=C227=C8=D5, =CF=C2=CE=E76=CA=B101=B7=D6, Magic.Z...@[EMAIL PROTECTED]
> is there anyone who can give me some idea about how to program a
> 256*256 co-occurance matrix? mine takes quite a long time, and now it
> is still working......probably it is wrong:(
> thank you!
this is mine, one matrix total 4 matrix
;matrix_04::(i+1,j-1)<-->(i,j)
;point=3D0
;for i=3D0,x-1 do begin
; for j=3D0,x-1 do begin
; for k=3D0,x-2 do begin
; matrix_tmp_00=3DOimage(*,k)
; matrix_tmp_01=3DOimage(*,k+1)
; matrix_search=3Dwhere(matrix_tmp_00 eq j)
; tag=3Dn_elements(matrix_search)
; for l=3D0,tag-2 do begin
; if(matrix_search(l)-1 gt 0) then begin
; if((matrix_tmp_00(matrix_search(l)) eq
matrix_tmp_01(matrix_search(l)-1))) then begin
; point=3Dpoint+1
; endif
; endif
; endfor
; endfor
; matrix_04(i,j)=3Dpoint
; endf


|