Port seems complete. Outputs match MATLAB code. TODO: test against whales.png