ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  too slow to draw the source image
Posted by Tom on May-05-2025 06:12
Hi, Peter

I want to show an CCD image with 5120x5120 pixels. In the following codes from the example "Contour Plot Cross Section", I have to set it to 100x100, otherwise it is too slow to update the grabbed images. How to solve the problem?

    // Spline interpolate data to a 80 x 80 grid for a smooth surface
    cDlg->setInterpolation(100, 100,false);
//cDlg->setInterpolation(dataX_size, dataY_size, false);//时间长
cDlg->setShadingMode(Chart::RectangularShading);
//cDlg->setShadingMode(Chart::TriangularShading);

best regards

  Re: too slow to draw the source image
Posted by Peter Kwan on May-06-2025 13:26
Hi Tom,

In a contour chart, usually there are some data points (eg. 200 points), and ChartDirector needs to interpolate the data to fill the image. For example, in a weather chart, you may have temperature data at 100 locations, and ChartDirector can interpolate them to fill the complete image.

For your case, your already have a "CCD image" of 5120x5120 pixels, and you can display the image directly just like displaying a photo. Would you mind to clarify what do you want ChartDirector to do?

Are the "CCD image" actually 5120x5120 measurements (such as a temperature measurement)? Do you want ChartDirector to change the "measurements" into color pixels?  Or do you want ChartDirector to computer the contour lines and display them over the image? Or do you want ChartDirector to provide the interactive features (such as tooltips over the chart or for zooming and scrolling)?

Best Regards
Peter Kwan

  Re: too slow to draw the source image
Posted by Tom on May-07-2025 00:05
Hi, Peter,

Thank you very much for your kindly help.
the obtained CCD image is the laser intensity distribution. It is a gray image. Yes, I want
ChartDirector to change the measured image into 3D color image.  In addition, I want ChartDirector to computer the contour lines and display them over the image. Yes, If ChartDirector could provide the interactive features (such as tooltips over the chart or for zooming and scrolling), it will be better. I wish ChartDirector could show 3D as good as OpenGL. But OpenGL is not as convenient  as ChartDirector.

best regards

Tom

  Re: too slow to draw the source image
Posted by Peter Kwan on May-07-2025 21:22
Hi Tom,

I will try myself using random 5120x5120 data points too see if I can make a higher resolution chart. I will let you know what is our test result.

Best Regards
Peter Kwan