Computing object statistics from the second central moments

前端 未结 2 1196
你的背包
你的背包 2020-12-18 05:08

I\'m currently working on writing a version of the MATLAB RegionProps function for GNU Octave. I have most of it implemented, but I\'m still struggling with the implementat

2条回答
  •  轮回少年
    2020-12-18 05:53

    Are you sure about the core of your raw_moments function? You might try

    amount = ((x-1) ** i) * ((y-1) ** j) * im(y,x);
    

    This doesn't seem like enough to cause the problems you're seeing, but it might be at least a part.

提交回复
热议问题