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

Notification

Icon
Error

Options
Go to last post Go to first unread
tde  
#1 Posted : Friday, February 16, 2018 10:08:43 AM(UTC)
tde

Rank: Newbie

Groups: Guest
Joined: 2/16/2018(UTC)
Posts: 2

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:

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


I would like:

Code:
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!

Edited by user Friday, February 16, 2018 12:12:31 PM(UTC)  | Reason: Not specified

Eugene Kosmin  
#2 Posted : Sunday, February 18, 2018 5:25:16 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Guest
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
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.
Code:
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);
}


Quote:
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.
Best regards,
Eugene Kosmin
The Aurigma Development Team
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.