<div>RegionType region;</div><div> region =<b><u><font class="Apple-style-span" color="#ff0000"> m_MovingImage</font></u></b>->GetLargestPossibleRegion();</div><div> if ( tkRegionUseUserRegion->value() == 1</div><div>
&& tkFixedImageViewer->IsRegionOfInterestAvailable() )</div><div> {</div><div> std::cout << "Registration using user roi." << std::endl;</div><div> region = tkFixedImageViewer->GetRegionOfInterest();</div>
<div> }</div><div> else if ( tkRegionUseLandmarkRegion->value() == 1 </div><div> && tkMovingImageViewer->GetNumberOfLandmarks() == 4 </div><div> && tkFixedImageViewer->GetNumberOfLandmarks() == 4)</div>
<div> {</div><div> std::cout << "Registration using landmark roi." << std::endl;</div><div> region = tkMovingImageViewer->ComputeLandmarkRegion(</div><div> tkRegionScale->value());</div>
<div> }</div><div> m_ImageRegistrationApp-><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>