ImageAccessor CopyPixelsToBuffer returns original pixel data

Your place to discuss general handling of images and the CZI file format
Post Reply
user-5613
Posts: 2
Joined: Thu Jan 01, 1970 1:00 am

ImageAccessor CopyPixelsToBuffer returns original pixel data

Post by user-5613 »

Hello,

We've been attempting to copy pixel values from a CZI image using Accessor.CopyPixelsToBuffer that has had the gamma and white balance altered in Zen blue. However, the copied RGB values, using that method, are the image's original RGB values - before any alterations. I also noticed that when using the Zen Blue viewer, the pixel value notification area at the bottom of the viewer also shows the original RGB values even though alterations have been made (although the image display is correct). Is there a way to copy those altered RGB pixel values programatically? Or to calculate them based on metadata? We are using the C# ZeissImageLib.dll.

Thanks much
user-5613
Posts: 2
Joined: Thu Jan 01, 1970 1:00 am

Post by user-5613 »

I had meant to post the answer to this in case anyone else stumbled across this post later, but got sidetracked. Anyway, the key is the datamapping object in the Accessor constructor. The contrast, brightness, white & black levels, gamma are all available to build the object. Sorry if this is in the wrong forum.
user-4
Posts: 397
Joined: Thu Jan 01, 1970 1:00 am

Post by user-4 »

Hello nmcw,

you are not in the 'wrong forum' but there was a problem with the automatic email system informing us that new posts have been made. We discovered your post by accident when you already answered it.

Sorry for this mistake!
Post Reply