[Numpy-discussion] Finding Unique Pixel Values

Ian Mallett geometrian@gmail....
Thu Jul 22 22:59:45 CDT 2010

Hi again,

I've condensed the problem down a lot, because I both presented it in an
overcomplicated way, and did not explain it particularly well.

Condensed problem:
a = np.zeros(num_patches)
b = np.array(...) #created, and is size 512^512 = 262,144
#Each value in "b" is an index into "a".
#For each occurrence of a given index in "b", increment the corresponding
value in "a" by +1.
#How should I do that?

Simpler, and more importantly, better explained problem.  Help?

Thanks again,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100722/a4ecd7c8/attachment.html 

More information about the NumPy-Discussion mailing list