acerb
03-06-2003, 04:01 AM
Hi. I have to rewrite a scientific soft dealing with dicom images (256 grayscale levels, 512x512) adding contours, panning and zooming. The problem is that's written with drawpixels and the image flicks when adding countours for example (each time it refreshs itself - glDrawPixels and glPixelZoom is used for the moment) :
glPixelZoom(fact,fact);
glRasterPos3i(centrageX,centrageY,0);
glDrawPixels(Image_Height,Image_Width,GL_RGB,GL_UN SIGNED_BYTE,imagei);
and
glVertex2f(zoomX+(C1.points[i-1].x-zoomX)*fact,zoomY+(C1.points[i-1].y-zoomY)*fact);
for countouring the image.
Any help for (*sigh* great) improvement? (textures for the image (512 is not too big?) - glOrtho, glPerspective, ... for the zoom and pan - ...) Exemples of code welcome;
Thanks a lot everybody adding something ^o^
glPixelZoom(fact,fact);
glRasterPos3i(centrageX,centrageY,0);
glDrawPixels(Image_Height,Image_Width,GL_RGB,GL_UN SIGNED_BYTE,imagei);
and
glVertex2f(zoomX+(C1.points[i-1].x-zoomX)*fact,zoomY+(C1.points[i-1].y-zoomY)*fact);
for countouring the image.
Any help for (*sigh* great) improvement? (textures for the image (512 is not too big?) - glOrtho, glPerspective, ... for the zoom and pan - ...) Exemples of code welcome;
Thanks a lot everybody adding something ^o^