PANDORE Version 6 GREYC-IMAGE

pquandrangle2rectangle



Correction of the geometrical distortion so as to transform a quadrangle into a rectangle.



Synopsis

pquandrangle2rectangle [-m mask] [rg1_in|-] [rg2_in|-]

Description

pquadrangle2rectangle corrects the part of the image im2_in that is included in the quandrangle represented by the four coins given in the image im1_in.

Inputs

Result

SUCCESS or FAILURE if the image can be corrected.

Examples

Detection of the whiteboard borders:

pshen 1.3 whiteboard.pan a.pan
pbinarization 2 255 a.pan bin.pan
phoughlines 10 0 360 a.pan lines.pan
pgetquadrangle lines.pan a.pan b.pan
pquadrangle2rectangle b.pan whiteboard.pan result.pan

See also

Reconstruction

C++ prototype

Errc PQuadrangle2Rectangle( const Img2duc &im1_in, const Img2duc &im2_in, Img2duc im_out );

Reference

Z. Zhang, and L. He, "Whiteboard Scanning and Image Enhancement", Digital Signal Processing, Vol.17, No.2, pages 414-432, 2007.


Author: Régis Clouard