void FexImgPyramidLevel::Calc( float EdgeDetectSigma ) { imdebug("lum b=32f w=%d h=%d %p /255", sx, sy, Img); BaseFloatImage_GaussEdgeDetect( Img, sx, sy, EdgeDetectSigma, GradX, GradY ); imdebug("lum b=32f w=%d h=%d %p /2", sx, sy, GradX); imdebug("lum b=32f w=%d h=%d %p /2", sx, sy, GradY); }
int display(int which) { switch (which) { case 0: imdebug("rgb w=16 h=17 t='first' %p", testRGB); break; // case 0: imdebug("rgb b=5,6,5 w=%d h=%d t='foo' %p", 16, 17, testRGB565); // break; case 1: imdebug("rgb rbga=__gg w=%d h=%d t='can\\'t touch dis' %p", 16, 17, testRGB); break; case 2: imdebug("rgb rbga=gggg *auto b=32f w=%d h=%d t=%s %p", 16, 17, "purty huh?", testRGBf); break; case 3: imdebug("rgb *0.2 b=32f w=%d h=%d t=12 %p", 16, 17, testRGBf); break; case 4: imdebug("rgb w=%d h=%d %p", 9000, 9000, testRGB);//error too big break; case 5: imdebug("rgb w=%d h=%d %p", 10, 10, 0);// error null ptr break; case 6: imdebug("rgb rbga=__gg b=16 w=%d h=%d t=%d %p", 16, 17, 42, testRGB16); break; case 7: imdebug("lum b=32f w=%d h=%d %p", 16*3, 17, testRGBf); break; case 8: imdebug("rgba t='rando' w=%d h=%d %p", 512, 512, testBigRGBA); break; case 9: imdebug("#6 rgba=#0145 w=%d h=%d t='last' %p", 8, 17, testRGB); return 0; } return which + 1; }
void CGBuffer::debugCubeMap(unsigned int idCubeMap) { #ifdef _WIN32 float *p = new float[512 * 512 * 4]; glBindTexture(GL_TEXTURE_CUBE_MAP, idCubeMap); glGetTexImage(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL_RGBA, GL_FLOAT, p); imdebug("rgba b=32f w=512 h=512 %p", p); glGetTexImage(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, 0, GL_RGBA, GL_FLOAT, p); imdebug("rgba b=32f w=512 h=512 %p", p); glGetTexImage(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, 0, GL_RGBA, GL_FLOAT, p); imdebug("rgba b=32f w=512 h=512 %p", p); glGetTexImage(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, GL_RGBA, GL_FLOAT, p); imdebug("rgba b=32f w=512 h=512 %p", p); glGetTexImage(GL_TEXTURE_CUBE_MAP_POSITIVE_Z, 0, GL_RGBA, GL_FLOAT, p); imdebug("rgba b=32f w=512 h=512 %p", p); glGetTexImage(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, GL_RGBA, GL_FLOAT, p); imdebug("rgba b=32f w=512 h=512 %p", p); delete [] p; #endif }
void FexImgPyramidLevel::Scale( FexImgPyramidLevel* old ) { imdebug("lum b=32f w=%d h=%d %p /255", old->sx, old->sy, old->Img); BaseFloatImage_LanczosRescale( old->Img, old->sx, old->sy, Img, sx, sy ); imdebug("lum b=32f w=%d h=%d %p /255", sx, sy, Img); }
void FexImgPyramidLevel::Fill( float* iImg, float DetectSmoothSigma ) { imdebug("lum b=32f w=%d h=%d %p /255", sx, sy, iImg); BaseFloatImage_GaussSmooth( iImg, sx, sy, DetectSmoothSigma, Img ); imdebug("lum b=32f w=%d h=%d %p /255", sx, sy, Img); }