Resolve "(viz): adapt default transfer function to the image"
Description
The default transfer function can now be adapted to the image pixel type, especially for ultrasound images.
The data::Image
no longer holds a default transfer function. To get a default transfer function, you have to use sight::module::ui::qt::image::STransferFunction
and specify a reference image as input. This is no issue if you don't want the transfer function selector in the user interface. You can register the service in an invisible view. You can have a look at Tuto07GenericScene
for instance.
Closes #997 (closed)
Extra changes
A bug in the negato adaptor was fixed, to allow the camera to reset properly when starting a configuration.
How to test it?
- Run SightViewer
- Load an ultrasound image, and observe the transfer function fits the range [0:255]
- Load a CT image, and observe the transfer function fits the range [-200:300]