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
Are you sure about the core of your raw_moments function? You might try
raw_moments
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.