Re: working with dict : incrementing dict dynamically

2013-03-11 Thread Sven
On 11 March 2013 15:23, inshu chauhan wrote: > I am trying to create a dictionary with a key and its values seraching > from a data set. But something is going wrong. This is the first time I am > working with dicts. > > My code is : > > import cv > def Computesegclass(segimage): > num_pixel

Re: working with dict : incrementing dict dynamically

2013-03-11 Thread John Gordon
In inshu chauhan writes: > --14dae93408ffe4594104d7a7bf0c > Content-Type: text/plain; charset=ISO-8859-1 > I am trying to create a dictionary with a key and its values seraching from > a data set. But something is going wrong. This is the first time I am > working with dicts. > My code is :

working with dict : incrementing dict dynamically

2013-03-11 Thread inshu chauhan
I am trying to create a dictionary with a key and its values seraching from a data set. But something is going wrong. This is the first time I am working with dicts. My code is : import cv def Computesegclass(segimage): num_pixel = 0 for y in xrange(0, segimage.height): for x