16-bit

OpenGl 16 bit display via Tao/C#

牧云@^-^@ 提交于 2019-12-06 12:49:03
I have some scientific image data that's coming out of a detector device in a 16 bit range which then gets rendered in an image. In order to display this data, I'm using OpenGL, because it should support ushorts as part of the library. I've managed to get this data into textures rendering on an OpenGL 1.4 platform, a limitation that is a requirement of this project. Unfortunately, the resulting textures look like they're being reduced to 8 bits, rather than 16 bits. I test this by generating a gradient image and displaying it; while the image itself has each pixel different from its neighbors,

what is meant by 32-bit application?

╄→尐↘猪︶ㄣ 提交于 2019-12-06 08:19:10
I am not sure what is meant by 16-bit or 32-bit applications. Is that a 16-bit application is an application which would not require more than 2^16 bytes of memory space? Does this 16-bit refers to the max size of the application? A 32-bit application is software that runs in a 32-bit flat address space. Answers to common questions Will a 64 bit CPU run a standard (32-bit) program on a 64-bit version of an OS? Yes it will. 64 bit systems are backward compatible with the 32 bit counterparts. Will a 64-bit OS run a standard application on a 64 bit processor? Again, it will. This is because of

C# - Converting 8-bit or 16-bit grayscale raw pixel data

半世苍凉 提交于 2019-12-06 07:08:09
问题 I need to be able to convert 8-bit or 16-bit grayscale pixel data into a file format that the .NET framework can support. The data I have available is the width, height, orientation (bottom-left) and the pixel format as 4096 shades of gray (12-bit resolution) packed in 2 bytes per pixel. So for example each pixel ranges from 0 to 4096, and each pixel is 2 bytes. I have already tried using PixelFormat.Format16bppGrayScale with the Bitmap constructor, and it throws a GDI+ exception. Everything

Python and 16-bit PGM

我们两清 提交于 2019-12-06 02:42:02
问题 I have 16-bit PGM images that I am trying to read in Python. It seems (?) like PIL does not support this format? import Image im = Image.open('test.pgm') im.show() Shows roughly the image, but it isn't right. There are dark bands throughout and img is reported to have mode=L . I think this is related to an early question I had about 16-bit TIFF files. Is 16-bit that rare that PIL just does not support it? Any advice how I can read 16-bit PGM files in Python, using PIL or another standard

How can I save/load a 16 bit image in .net x64?

我的未来我决定 提交于 2019-12-05 09:01:21
Before, when I was using win32, I used FreeImage in order to load and save bitmaps of bit depth greater than 8 bits. That's every image I work with, since I'm doing medical imaging, and before anyone says anything, yes, me and my customers have spent a lot of money on high-brightness, high-contrast monitors with 11 or 12 bits of dynamic range. In fact, if you're curious, requirements by the ACR for running mammography incldue a monitor with at least 10 bits of dynamic range. I just switched to x64 for the memory overheads and to get all of my development onto one platform and compiling mode. I

C# - Converting 8-bit or 16-bit grayscale raw pixel data

a 夏天 提交于 2019-12-04 13:57:59
I need to be able to convert 8-bit or 16-bit grayscale pixel data into a file format that the .NET framework can support. The data I have available is the width, height, orientation (bottom-left) and the pixel format as 4096 shades of gray (12-bit resolution) packed in 2 bytes per pixel. So for example each pixel ranges from 0 to 4096, and each pixel is 2 bytes. I have already tried using PixelFormat.Format16bppGrayScale with the Bitmap constructor, and it throws a GDI+ exception. Everything I have read says that this format is not supported and that MSDN is wrong. I want to convert this pixel

Python and 16-bit PGM

一曲冷凌霜 提交于 2019-12-04 06:59:04
I have 16-bit PGM images that I am trying to read in Python. It seems (?) like PIL does not support this format? import Image im = Image.open('test.pgm') im.show() Shows roughly the image, but it isn't right. There are dark bands throughout and img is reported to have mode=L . I think this is related to an early question I had about 16-bit TIFF files . Is 16-bit that rare that PIL just does not support it? Any advice how I can read 16-bit PGM files in Python, using PIL or another standard library, or home-grown code? nobar The following depends only on numpy to load the image, which can be 8

NASM Assembly 16bit “invalid combination of opcode and operands”

ぃ、小莉子 提交于 2019-12-04 06:57:58
问题 So I'm trying to write a program that creates a file and my name in it. But I get the "invalid combination of opcode and operands" on the mov handle, ax , and I don't know why. I saw here that you can do it so why can't I. Thank you in advance for any help. org 100h mov ah, 3ch ;create a file mov dx, name ;file name mov cx, 0 int 21h mov handle, ax ; save handle mov ah, 40h ;write to file mov bx, handle mov cx, 1000 mov dx, text ; what to write int 21h mov ah, 3eh ;close the file mov bx,

How to pass/retrieve DOS command-line parameters in a 16-bit assembly program?

不问归期 提交于 2019-12-03 08:07:13
I am writing some little tools for MS-DOS. Now I'm writing a Shutdown.com , like for Windows XP and greater. I have already written the entire code, now I just need to pass the argument from DOS. I need to pass the parameters "-r" to reboot and "-s" to shutdown. How can I do it? I'm using TASM(Turbo Assembler 4.1) on Windows 98 to link and compile. I'm looking for a very simple way to do it, and if possible, still a .COM program. I'm looking exactly like the ARGV and ARGC from C language, but for Assembly 16-bits... shutdown -r will reboot shutdown -s will shutdown Remember that I already know

What are 16, 32 and 64-bit architectures?

邮差的信 提交于 2019-12-03 04:15:11
问题 What do 16-bit, 32-bit and 64-bit architectures mean in case of Microprocessors and/or Operating Systems? In case of Microprocessors, does it mean maximum size of General Purpose Register s or size of Integer or number of Address-line s or number of Data Bus line s or what? What do we mean by saying " DOS is a 16-bit OS ", " Windows in a 32-bit OS ", etc...? 回答1: The difference comes down to the bit width of an instruction set passed to a general purpose register for operating on. 16 bits can