comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » about co-occurance matrix
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
about co-occurance matrix [message #60022] Sun, 27 April 2008 01:01 Go to next message
Magic.Zhou is currently offline  Magic.Zhou
Messages: 16
Registered: April 2008
Junior Member
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!
Re: about co-occurance matrix [message #60133 is a reply to message #60022] Mon, 28 April 2008 11:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Bob Crawford writes:

> Mightn't that be because it's actually spelt "co-occurrence"?
> (occurrence - 2 "c"s, 2 "r"s, 2"e"s).

Yeah, it's probably smarter than me. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: about co-occurance matrix [message #60135 is a reply to message #60022] Mon, 28 April 2008 11:48 Go to previous message
Bob[3] is currently offline  Bob[3]
Messages: 60
Registered: December 2006
Member
On Apr 27, 11:10 pm, David Fanning <n...@dfanning.com> wrote:
> David Fanning writes:
>> Humm, my spell checker doesn't like "occurrence"
>> even when I tell it to back off. :-(
>
> This is SO weird!! I'll have to send the damn word
> as a byte array:
>
>      99 111  45 111  99  99 117 114  97 110  99 101
>      c   o   -   o    c   c  u   r   a   n    c  e
>
> Never had that happen before!
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Mightn't that be because it's actually spelt "co-occurrence"?
(occurrence - 2 "c"s, 2 "r"s, 2"e"s).
Re: about co-occurance matrix [message #60152 is a reply to message #60022] Sun, 27 April 2008 20:10 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Humm, my spell checker doesn't like "occurrence"
> even when I tell it to back off. :-(

This is SO weird!! I'll have to send the damn word
as a byte array:

99 111 45 111 99 99 117 114 97 110 99 101
c o - o c c u r a n c e

Never had that happen before!

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: about co-occurance matrix [message #60153 is a reply to message #60022] Sun, 27 April 2008 20:03 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Well, given this definition of a occurrence matrix:

Humm, my spell checker doesn't like "occurrence"
even when I tell it to back off. :-(

Sorry,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: about co-occurance matrix [message #60154 is a reply to message #60022] Sun, 27 April 2008 20:00 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Magic.Zhou@gmail.com writes:

> 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:(

Well, given this definition of a occurrence matrix:

http://en.wikipedia.org/wiki/Co-occurrence_matrix

I would say I would create a occurrence matrix of A1
and A2, with no offsets like this:

matrix = A1 EQ A2

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: about co-occurance matrix [message #60156 is a reply to message #60022] Sun, 27 April 2008 19:34 Go to previous message
Magic.Zhou is currently offline  Magic.Zhou
Messages: 16
Registered: April 2008
Junior Member
On 4月27日, 下午6时01分, Magic.Z...@gmail.com wrote:
> 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=0
;for i=0,x-1 do begin
; for j=0,x-1 do begin
; for k=0,x-2 do begin
; matrix_tmp_00=Oimage(*,k)
; matrix_tmp_01=Oimage(*,k+1)
; matrix_search=where(matrix_tmp_00 eq j)
; tag=n_elements(matrix_search)
; for l=0,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=point+1
; endif
; endif
; endfor
; endfor
; matrix_04(i,j)=point
; endf
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ROI outlining of 3D volumes (multi-slice 2D)
Next Topic: Re: ROI outlining of 3D volumes (multi-slice 2D)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 02:01:35 PDT 2025

Total time taken to generate the page: 0.47886 seconds