0

How can I create a grayscale image in Java using 16 bit pixel data stored in a short array?

Mark Elliot
  • 72,164
  • 19
  • 138
  • 159

2 Answers2

2

Consider BufferedImage.TYPE_USHORT_GRAY. There's a tutorial here.

trashgod
  • 200,320
  • 28
  • 229
  • 974
1

enter image description here Hey may be this helpful to convert your short[] to BufferedImage..it is nicely worked for me try it out. Here pix is my short array.

Community
  • 1
  • 1
Jay Thakkar
  • 639
  • 1
  • 7
  • 13