<div>RegionType region;</div><div>  region =<b><u><font class="Apple-style-span" color="#ff0000"> m_MovingImage</font></u></b>-&gt;GetLargestPossibleRegion();</div><div>  if ( tkRegionUseUserRegion-&gt;value() == 1</div><div>
        &amp;&amp; tkFixedImageViewer-&gt;IsRegionOfInterestAvailable() )</div><div>    {</div><div>    std::cout &lt;&lt; &quot;Registration using user roi.&quot; &lt;&lt; std::endl;</div><div>    region = tkFixedImageViewer-&gt;GetRegionOfInterest();</div>
<div>    }</div><div>  else if ( tkRegionUseLandmarkRegion-&gt;value() == 1 </div><div>            &amp;&amp; tkMovingImageViewer-&gt;GetNumberOfLandmarks() == 4 </div><div>            &amp;&amp; tkFixedImageViewer-&gt;GetNumberOfLandmarks() == 4)</div>
<div>    {</div><div>    std::cout &lt;&lt; &quot;Registration using landmark roi.&quot; &lt;&lt; std::endl;</div><div>    region = tkMovingImageViewer-&gt;ComputeLandmarkRegion(</div><div>                                  tkRegionScale-&gt;value());</div>
<div>    }</div><div>  m_ImageRegistrationApp-&gt;<u><b><font class="Apple-style-span" color="#ff6666">SetFixedImageRegion(region)</font></b></u>;</div><div><br></div><div>InsightApplications-3.20.0/LandmarkInitializedMutualInformationRegistration/guiMainImplementation.cxx </div>
<div><br></div><div>line 1312-1329</div>