MCPcopy Create free account
hub / github.com/DennisLiu1993/Fastest_Image_Pattern_Matching / LoadDst

Method LoadDst

MatchTool/MatchToolDlg.cpp:1744–1755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1742}
1743
1744void CMatchToolDlg::LoadDst ()
1745{
1746 CRect rectDst;
1747 ::GetWindowRect (GetDlgItem (IDC_STATIC_DST_VIEW)->m_hWnd, rectDst);
1748 double dScaleX = rectDst.Width () / (double)m_matDst.cols;
1749 double dScaleY = rectDst.Height () / (double)m_matDst.rows;
1750 m_dDstScale = min (dScaleX, dScaleY);
1751 RefreshDstView ();
1752 CString strSize;
1753 strSize.Format (L"%s : %d X %d", m_strLanDstImageSize, m_matDst.cols, m_matDst.rows);
1754 m_statusBar.SetPaneText (2, strSize);
1755}
1756double g_dCompensationX = 0;//補償ScrollBar取整數造成的誤差
1757double g_dCompensationY = 0;
1758#define BAR_SIZE 100

Callers

nothing calls this directly

Calls 2

WidthMethod · 0.80
HeightMethod · 0.80

Tested by

no test coverage detected