영상처리C소스(영상확대,DFT,IDFT,MASK연산(sobel,prewett),LABELING라벨링)
- 최초 등록일
- 2008.05.31
- 최종 저작일
- 2007.10
- 34페이지/ 한컴오피스
- 가격 2,000원
소개글
영상처리 C소스
영상 확대
DFT,IDFT
SOBEL, PREWETT, LABELING, SKELETON
영상의 moment psnr mse 계산 추출등
목차
영상처리 C소스
영상 확대
DFT,IDFT
SOBEL, PREWETT, LABELING, SKELETON
영상의 moment psnr mse 계산 추출등
영상처리의 기본 알고리즘 모두 수록
본문내용
void CProject::OnPixel()
{
CMainFrame *pMainFrame=(CMainFrame *)AfxGetMainWnd();
CChildFrame *pChildFrame=(CChildFrame *)pMainFrame->MDIGetActive(NULL);
CKvisionView *pView = (CKvisionView *)pChildFrame->GetActiveView();
if (pView->image_num < 0) return;
AfxGetApp()->DoWaitCursor(1);
int width, height;
int xx0, yy0;
BYTE **img;
width = pView->img_info[pView->current_image].width;
height = pView->img_info[pView->current_image].height;
xx0 = pView->img_info[pView->current_image].x;
yy0 = pView->img_info[pView->current_image].y;
img = cmatrix(height, width);
Get_Image2D(img, pView->current_image);
FILE *fp;
fp=fopen("c:\pixelvalue.txt","w");
for (int i=0;i<height;i++)
{
for (int j=0;j<width;j++)
{
fprintf(fp, " %d", img[i][j]);
}
fprintf(fp, "\n");
}
fclose(fp);
Display_Cimage2D(img, width, height, xx0+width, yy0, TRUE);
free_cmatrix(img, height, width);
// TODO: Add your control notification handler code here
참고 자료
없음