This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

48bpp Image Pipeline

Hi,

first of all great product you have there!

I am using the evaluation version right now and have set up a simple pipeline.

It all works nicely with 24bpp but I would like to run the whole pipeline from input to output in 48bpp.

Let's say for example I have:

JpegReader --> Brightness --> LUT --> Bitmap

How do I specify that I want to convert the read image to 48bpp and keep that setting through the whole pipeline?

Also: Is it possible to switch the LUT to floating point mode? So instead of doing:

lut.SetPoint(0, 0);
lut.SetPoint(128, 100);
lut.SetPoint(255, 255);


I would like:

lut.SetPoint(0.0, 0.0);
lut.SetPoint(0.5, 0.3);
lut.SetPoint(1.0, 1.0);


And my last question: Are you planning on supporting 32bits per channel in the future?

Thanks!
Hi,

Thanks for your suggestion. I'll add it to our bug tracking system. Now you can set up LutTransform from OnInit event handler and use it with both types of pixel formats.
using (var reader = ImageReader.Create("input.tif"))
using (var writer = ImageWriter.Create("output.tif"))
using (var lt = new LutTransform())
{
    lt.OnInit += (sender, e) =>
    {
        var lutTransform = (LutTransform)sender;
        lutTransform.Lut = new Lut();
        lutTransform.Lut.InterpolationMode = LutInterpolationMode.Linear;

        if (e.ImageParams.PixelFormat.IsExtended)
        {
            lutTransform.Lut.SetPoint(0, 65535);
            lutTransform.Lut.SetPoint(65536, 0);
        }
        else
        {
            lutTransform.Lut.SetPoint(0, 255);
            lutTransform.Lut.SetPoint(256, 0);
        }
    };

    Pipeline.Run(reader + lt + writer);
}


And my last question: Are you planning on supporting 32bits per channel in the future? Thanks!

At the moment, we have no plans for adding 32bpc pixel formats.