I am making a curve surface reconstruction successfully with vtkimagereslice and appending every output of the curve to the final image (for each 2 points of the curve i reslice). I use that to obtain a panoramic view. The problem comes when i use vtkimageslab that this process becomes very slow. As i need to make an average of the output slices i cannot use the trick of dimension 2. If i reduce the number of points i get undesired lines.
The problem i have is that everytime i scroll the curve i need to create this panoramic view to get another area of the image. And as this curve is represented as an spline when i modify the spline i also need to update the panoramic view. So i need to have it as fast as possible (real time). I wonder if there is any way to optimize and make this faster.
I was thinking to compute the reconstruction once and keep it in memory and when i scroll, just make the slab (average) of the slices without the reconstruction which is already done. And only to compute it again when the spline representing the curve is moved and released. But the image can be very large so i do not think this is the best way to do it. Any idea?