本文整理汇总了C++中Projection::CreateFilter方法的典型用法代码示例。如果您正苦于以下问题:C++ Projection::CreateFilter方法的具体用法?C++ Projection::CreateFilter怎么用?C++ Projection::CreateFilter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Projection
的用法示例。
在下文中一共展示了Projection::CreateFilter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: StartReconstruction
BOOL MainWindow::StartReconstruction()
{
// read in variables from GUI
WCHAR szText[8];
INT nxy, nz;
FLOAT res, cutoff;
filter_type filter;
SendMessage(m_hDimensions[0],WM_GETTEXT,64,(LPARAM)szText);
nxy = _wtoi(szText);
SendMessage(m_hDimensions[1],WM_GETTEXT,64,(LPARAM)szText);
nz = _wtoi(szText);
SendMessage(m_hDimensions[2],WM_GETTEXT,64,(LPARAM)szText);
res = _wtof(szText);
filter = (filter_type)SendMessage(m_hFilter,CB_GETCURSEL,NULL,NULL);
cutoff = SendMessage(m_hCutoff,TBM_GETPOS,NULL,NULL)/10.0;
m_Recon = new Reconstruction(nz, nxy, nxy, res, m_Proj);
m_Recon->SetHWND(m_hwnd);
m_Proj->CreateFilter(filter,cutoff);
m_thrRecon = _beginthreadex(NULL, 0, Reconstruction::ReconThread, m_Recon, 0, NULL);
if(!m_thrRecon)
return FALSE;
return TRUE;
}
示例2: RemoveMetal
BOOL MainWindow::RemoveMetal()
{
float threshold;
WCHAR szThresh[16];
filter_type filter;
FLOAT cutoff;
filter = (filter_type)SendMessage(m_hFilter,CB_GETCURSEL,NULL,NULL);
cutoff = SendMessage(m_hCutoff,TBM_GETPOS,NULL,NULL)/10.0;
m_Proj->CreateFilter(filter,cutoff);
SendMessage(m_hMetalThreshold, WM_GETTEXT, (WPARAM)16,(LPARAM)szThresh);
threshold = _wtof(szThresh);
m_Recon->SetMetalThreshold(threshold);
m_thrRecon = _beginthreadex(NULL, 0, Reconstruction::RemoveMetalThread, m_Recon, 0, NULL);
if(!m_thrRecon)
return FALSE;
return TRUE;
}