how to report the amount of different cells from consecutive frames ?


    Jun 19 2014 | 8:03 am
    hi , i'm working on 1 char matrices . i would like to get the amount of cells that have changed since last frame . they can only be 0 or 255 , they never are 110 , or 32 , ... jit.change doesn't seem to be able to give this information , efficiently (scanning threshold settings is not a good way ) . best would be a jit.gen solution , and i'm still stuck ,as i'm trying to find my way in this programming style ... i'm working at low resolutions (100x200 , 10x40 , .... , that kind)
    any clues , any box ?
    cheers Matthieu

    • Jun 19 2014 | 8:46 am
      Something like this?
    • Jun 19 2014 | 11:08 am
      hi LSKA , thanks a lot for your answer , unfortunately , i'm looking for another counting method . here is a small modification on your patch .
      i have just replaced the jit.noise with 2 matrices which have 4 different cells . i'm looking for a way to compare each cell one by one , in this case ,it would report that 4 cells have changed .
      i was hoping to find something in CV.jits , but i still haven't .
    • Jun 19 2014 | 3:45 pm
      Try this:
    • Jun 19 2014 | 5:41 pm
      hi Christopher , thanks a lot , a lot , for this . it's working 100% in all the cases i've tried .
      i would definitely need to practise on the different ops of jit op , it is so often the key to my needs !
      it's not the first time i can read your good advices , christopher , it's already been the case on some other threads , thanks again , for this , and the other times .
      also , thank you lska , your patch made me want to understand it better .
      Matthieu