When I use the settablevalue function in vtklookuptable, I can only set the value of RGBA, but my image is a gray image. How can I set the color to the point cloud?
Hi, Ethan,
Set the same gray level value for R, G and B.
cheers,
Paulo
thanks you very much;
The same color needs to be reversed
However, I have another problem. After I click the button to display the point cloud, and then click the button to display the point cloud repeatedly, the memory will keep rising. I don’t know how to clear the previous display. Please give me your proposal
Hi, Ethan,
Forgive me, but I didn’t understand it. If you set R, G and B to the same value you get a gray color (or black or white).
You have to remove the autor that is already in the scene: renderer->RemoveActor(actor);
. You’re likely creating multiple actors representing the same point cloud.
cheers,
Paulo