1

How can I write .raw files in Java? I have to use this output file as a source file for ParaView.

Chris
  • 44,602
  • 16
  • 137
  • 156
user1466705
  • 55
  • 1
  • 4
  • [Java Tutorial on I/O](http://docs.oracle.com/javase/tutorial/essential/io/) – assylias Jul 06 '12 at 09:33
  • I did go through the tutorial but I could my find the answer to my basic question i.e. How do I output data in .raw format. Can you please explain this to me. – user1466705 Jul 06 '12 at 09:38
  • 1
    Output to where? Standard Output? A file? – Manish Jul 06 '12 at 09:45
  • Basically I am trying to output data to a .raw file. I believe that this is a binary file format. – user1466705 Jul 06 '12 at 09:50
  • You need to know what the format is first. (Its not a Java standard format so no Java documentation will help you there) Once you know the format you can workout how to produce this in Java. – Peter Lawrey Jul 06 '12 at 09:59

1 Answers1

1

Unlike other binary file formats, RAW is camera specific: Each digital camera uses its own file format. See https://en.wikipedia.org/wiki/Raw_image_format

To read/write images in this format, you can use Jrawio

Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820