On Fri, Jan 01, 2021 at 12:34:36AM +0530, Mayuresh wrote:
> On Thu, Dec 31, 2020 at 06:17:13PM -, Michael van Elst wrote:
> > 16bit/pixel is rare. Maybe pi-fits can do what you need, it's made
> > for astronomy pictures.
>
> May be medical imaging (X rays in this case) use 16bit, just like
>
You can build something with the Go image package quite easily. Create an
image in memory and fill it with raw values, then write to an image format
of your choice. If you prefer C++, OpenCV can do this too.
Mayuresh schrieb am Do. 31. Dez. 2020 um 17:54:
> I recently wrote a pyusb based driver
On Thu, 31 Dec 2020 at 16:54, Mayuresh wrote:
>
> I recently wrote a pyusb based driver to interact with an X ray camera.
> The driver gives me a byte array of a 16 bit grayscale image. I want to
> put this byte array into an image format. No specific format required as I
> can always convert it
Hi Mayuresh,
> I recently wrote a pyusb based driver to interact with an X ray camera.
> The driver gives me a byte array of a 16 bit grayscale image. I want to
> put this byte array into an image format. No specific format required as I
> can always convert it using ImageMagick.
I always do
On Thu, Dec 31, 2020 at 06:17:13PM -, Michael van Elst wrote:
> 16bit/pixel is rare. Maybe pi-fits can do what you need, it's made
> for astronomy pictures.
May be medical imaging (X rays in this case) use 16bit, just like
astronomy. I came across pypng which is supporting 16 bit depth.
--
mayur...@acm.org (Mayuresh) writes:
>Looking for alternative to pillow to create image from byte array,
>preferably pkgsrc based, but otherwise is also fine. Python based
>preferably as the driver is in python, but otherwise is also fine.
16bit/pixel is rare. Maybe pi-fits can do what you need,
I recently wrote a pyusb based driver to interact with an X ray camera.
The driver gives me a byte array of a 16 bit grayscale image. I want to
put this byte array into an image format. No specific format required as I
can always convert it using ImageMagick.
[The python pillow package almost did