1
CGAL은 디스크에서 기존 이미지 파일을 읽는 기능 read
에 의해 Image_3 개체를 인스턴스화하는 방법을 제공합니다. 어떻게 그렇게 할CGAL에서 높이, 너비, 깊이 및 데이터 포인터를 전달하여 Image_3 인스턴스 만들기
CGAL::Image_3 im;
int Height = 512;
int Width = 512;
int Depth = 100;
int* dataptr = new int [Height*Width*Depth];
memset(dataptr, 0, sizeof(int)*Height*Width*Depth);
MyCreate(im, Height, Width, Depth, dataptr); // <== my function to instance this object.
: 나는 height,width,depth
이 같은 data pointer
와 그것을 예를 할 수 있는지 궁금하네요?