-
Notifications
You must be signed in to change notification settings - Fork 3
Add greyscale colormap to 2d viewer #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| data = self.subtract.GetOutput() | ||
|
|
||
| # Retrieve the scalar data from the output | ||
| scalars = data.GetPointData().GetScalars() | ||
|
|
||
| # Check if scalars exist in the data | ||
|
|
||
| # Get the min and max scalar values | ||
| cmin, cmax = scalars.GetRange() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have thought that this would be sufficient.
| data = self.subtract.GetOutput() | |
| # Retrieve the scalar data from the output | |
| scalars = data.GetPointData().GetScalars() | |
| # Check if scalars exist in the data | |
| # Get the min and max scalar values | |
| cmin, cmax = scalars.GetRange() | |
| v = self.vis_widget_reg.frame.viewer | |
| # make sure the stats are updated | |
| v.ia.Update() | |
| cmin = v.ia.GetMinimum() | |
| cmax = v.ia.GetMaximum() | |
I don't see you connected any observer?
|
07/07/2025 We will not have time to finalise the observers. Danica is going on leave. Ideally, we would want to add this feature in the CILViewer. We are pausing this PR for the moment. Edo is keener to have the #169 instead of simply this. |
Uh oh!
There was an error while loading. Please reload this page.