A non-transitory computer-readable medium encoded with a computer-readable program, which, when executed by a processor, will cause a computer to execute a method of processing an image, wherein the method includes receiving a 2-D color Doppler image. The method additionally includes extracting a single component velocity field of a 2-D plane from the 2-D color Doppler image. Further, the method includes receiving a geometrical boundary of a region of interest within the 2-D color Doppler image. Moreover, the method includes applying a plurality of boundary conditions to the geometrical boundary, an at least one inlet, and an at least one outlet, of the single component velocity field of a 2-D plane. The method additionally includes solving a streamfunction vorticity formulation to reconstruct a transverse velocity component. Further, the method includes outputting a reconstructed 2-D 2-component velocity based on the transverse velocity component.