<?xml version="1.0" encoding="UTF-8"?>
<hdevelop file_version="1.1" halcon_version="13.0">
<procedure name="convert_rectangle1_to_rectangle2_params">
<interface>
<ic>
<par name="Row1" base_type="ctrl" dimension="0"/>
<par name="Column1" base_type="ctrl" dimension="0"/>
<par name="Row2" base_type="ctrl" dimension="0"/>
<par name="Column2" base_type="ctrl" dimension="0"/>
</ic>
<oc>
<par name="Row" base_type="ctrl" dimension="0"/>
<par name="Column" base_type="ctrl" dimension="0"/>
<par name="Phi" base_type="ctrl" dimension="0"/>
<par name="Length1" base_type="ctrl" dimension="0"/>
<par name="Length2" base_type="ctrl" dimension="0"/>
</oc>
</interface>
<body>
<c> * Copyright (c) MVTec Software GmbH.  All rights reserved.</c>
<c> *</c>
<c> * All use of this software is subject to the terms of the revised BSD</c>
<c> * license.  You should have received a copy of this license along</c>
<c> * with this source code in a file named "license.txt."</c>
<c></c>
<c>* convert rectangle1 parameters into rectangle2 parameters that yield the same rectangle</c>
<l>Row := real(Row1+Row2)/2</l>
<l>Column := real(Column1+Column2)/2</l>
<l>Phi := 0.0</l>
<l>Length1 := real(Column2-Column1)/2</l>
<l>Length2 := real(Row2-Row1)/2</l>
<c></c>
<l>return ()</l>
</body>
<docu id="convert_rectangle1_to_rectangle2_params">
<parameters>
<parameter id="Column"/>
<parameter id="Column1"/>
<parameter id="Column2"/>
<parameter id="Length1"/>
<parameter id="Length2"/>
<parameter id="Phi"/>
<parameter id="Row"/>
<parameter id="Row1"/>
<parameter id="Row2"/>
</parameters>
</docu>
</procedure>
</hdevelop>
