Open NicerNewerCar opened 2 years ago
Example tiff files 02-010_R_Hop_11_Cam01_UND.0002.txt 02-010_R_Hop_11_Cam02_UND.0001.txt 02-010_R_Hop_11_Cam02_UND.0002.txt 02-010_R_Hop_11_Cam01_UND.0001.txt
rename .txt .tif
Looking through my notes, I found some comments on this that I never posted.
The primary issue here is that both the CUDA and OpenCL backends only support Greyscale radiograph images (8/16/32 bit images) and not RGB (24/48?/96? bit images). Here is my proposed solution along with a brief overview of the rendering pipeline.
AutoscoperMainWindow::frame_changed
passes some information to the GPU renderers and then calls GLView::PaintGL
to perform the rendering [This sets the viewport then calls View::Render
which then calls all GPU renderers]. When we are passing the info to GPU we should include the samplesPerPixel
field from the Videos current image_
. This will be 1
for Greyscale images and 3
for RGB images.
Within RadRenderer::set_rad
we need to ensure that we are accounting for the samplesPerPixel
when we are binding the image to the GPU. Within the kernel, I think we should cast to Greyscale on the fly using channel weighting such as this.
Issue where larger 24-bit images are not rendered properly in autoscoper.
Issue from Madalyn Hague:
The workaround she found:
The tiff images in question are 2048x2048 24-bit images with LZW compression, currently we are usning 512x512 8-bit images with LZW compression to preform our tests.
If you would like to see the dataset in question please don't hesitate to reach out to me.
Examples
Good Quaility
Matlab Converted
Python Converted