Marshall,
There are 2 images in this "conversation": im1 and im2.
If I apply your code for finding pairs of adjacent pixels on these 2 images
I get the following results. Can you elaborate on the meaning and
meaningfulness of the results below, please?
$((}. ,.&, }:) , (}."1 ,.&, }:"1))im1
1504 2
freqcount=: (\: {:"1)@(~. ,. #/.~)
freqcount((}. ,.&, }:) , (}."1 ,.&, }:"1))im1 NB. poor image
0 0 1034
1 1 302
1 0 84
0 1 84
freqcount((}. ,.&, }:) , (}."1 ,.&, }:"1))im2 NB. better image
0 0 962
1 1 450
1 0 46
0 1 46
Thank you,
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm