LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to know how to transform a .raw format file into a 2D table ?

I would like to know how to read a .raw format file with LabView? What I want to do is to make a 2D table from a .raw format file.

There is already the jpg, bmp and png format reader function, but what about .raw?

I'll wait for suggestions...

thanks
0 Kudos
Message 1 of 5
(3,217 Views)
Hello tonymontana,

I think you will get many suggestions, because there are many .raw file formats...
If you want to convert data to a different format you have to know the original format.

From your posting I guess you talk about graphics. So I know raw formats which use ASCII or binary representations (like .ppm or .pgm did),
also true color formats are possible (which order you have of R, G and B?) or is your format completely different (perhaps HSV or CMYK?)

To make it short: give us more information (or even test data) and we will give you more detailed answers.

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,209 Views)
...ok I got it ... the fact is that I have no idea of wich kind of format my .raw image is made with

What I know is that I can opon it with photoshop and if I open it with "bloc-notes" it gives me something like this:

c0h  h  > 5 (  9 c 9  c 1 ` N â ~ Z a T j J C S S G , @ E :  8  G 0 Z < > T  5   5 1 ( )  . F  + ? m ; ^ - F ? . k / Å i Q L 7 M 9 : b 8 R T O D : ~ A M S S H H g ! ˆ  H - P Z S 6 N 9 K A M 2 m Q T 4 V  / : C =  & B Z 2 F : L h R N [ \ d L  @ 0 + M F J \ L ¦ K 5 L X d 8 ^ @ 6 E \ > * H F : V : k b = j E P P Q \ C = : U g G G > H \ _ I 2 E r ] ? E 3 
A C [ ^ U G L N P g W N H J k ; C U = [ ; 5 G  E K G ? U o Q R X ; 7 X V 6 V V T 9 D A M p R M S J _ Q E G / g _ S S A ; K M Q @ ] L V C 8 < 6 m I \ ` N J Z 7 L 3 1 L “ b ` X Q P d S M O F f K ` A Q D E [ B N ^ j Y  R D L k Z E D @ Æ  G < N G d F c i T F  b . % I ^ L s Z I v ^ ¯ G G N U O q H H \ 0 G S \ N  . N ` _ @ 8 Y p N 5 V K K m D 8 V \ } H R F o { P Z ` U g h D N  a I \ N ? B h P S H F W ? Q & M I G R N Y E W [ _ W K G @ J G f ‚ Y i R R v † ] D d O Y M L R 4  - 2 X H p [ d i F J T T M W # Q q g Q C M [ b › ] V ] A Ž e C 4 = a W o h P { E Q X M F _ n V
D S z I ^ P _ S X [ T [ I L ® c ] J I W V D ] * # F ? Z S R [ b i ; > ; _ w g Z g G 1 ] F Q J X ~ A h V S V < V Y ^ G c _ [ M > S J S q ? n L E Q U N B 3 a M V $ _ C Y k S « A M e T T ^ H I
( ^ K R Z Y e P C n _ a V K + 2 _ V M d L N n M Ë r ` ^ ^ u Z K j L B V 1 b R Z f k P a [ M K b F f T A ` 5 4 > F ` D g Z d V n L @ ' H R ^ r s ` o B L Z S h Q f R c e u @ j O : [ _ R = K \ 9 T N Q X b X } h L _ ? B s ^ f ž V G c { A L Z P  ; P Q E D z E Y U N \ _ F O  Y _ K W 6 \ T J ì ? V W Q U c [ `

So the question now is how do I understand the original format of my .raw file?
If I did things right I attached my zipped .raw file example (caccoletta.raw)

I'll wait again for help

thanks
0 Kudos
Message 3 of 5
(3,207 Views)
Hello tonymontana,

I'm not able to open this pic as I don't have Photoshop.
I need to know at least the pic size (number of pixels in x- and y-direction). Doesn't Photoshop display any information
on that file? From the file size I only get the prime factors 2^2,3,11,17,19 and 67. That's many possible filesizes (even
if 3 possibly marks a true color image with 24bit color information...).

Please try to provide more informations. I'm back in office on Monday...

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,193 Views)
Most likely, you are talking about raw formats used by digital cameras.

Unfortunately, there is no standard and every camera has it's own proprietary format. Adobe is actually trying to standartized all these into a universal "digital negative format" (DNG). Here is a quote from their site (bold emphasis added by me):

"Raw file formats are becoming extremely popular in digital photography workflows because they offer creative professionals greater creative control. However, cameras can use many different raw formats — the specifications for which are not publicly available — which means that not every raw file can be read by a variety of software applications. As a result, the use of these proprietary raw files as a long-term archival solution carries risk, and sharing these files across complex workflows is even more challenging."

Here is a generic description of the raw format.

If you do a google search on your particular camera you might find some partial specifications if you are very lucky. Most information seems proprietary. Even the digital camera raw file support plugin in photoshop needs to be updated constantly to understand new camera models.

Reading raw files does not seem like an easy task to do directly in LabVIEW. 😞
Message 5 of 5
(3,192 Views)