Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7640603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:42:43+00:00 2026-05-31T08:42:43+00:00

I’ve got some weird images I’m getting from some hardware at work. They’re from

  • 0

I’ve got some weird images I’m getting from some hardware at work. They’re from this weird piece of hardware that has multiple images being stitched together and stored as raw images. Think of one of those computer security displays with four images displayed at once. Basically, it’s like that. And then they’re being stored as raw images. Annnnd, there’s no documentation for this old piece of junk at all.

I tried to write an extractor to split the images into separate raw files. But the raw image software I used to try and read the image I extracted as a test indicates that it’s corrupted. I’m currently thinking that even though it’s just raw data, there’s supposed to be a file header. But no matter how hard I look, I can’t seem to find a definition for a raw image file online. I see that there’s a ton of different raw image file types, but I can’t even find definitions for those.

Any advice for me?

edit: After rereading this, I don’t think I’m being very clear. I have made a supposition in reading in my raw file I wish to split, the supposition is that I believe there is no header in the file, and start copying data for the first image I am extracting with the first byte of data. I also make the same supposition in the image file I am writing out, and I write no header as I’m copying out the image. I believe my supposition about no headers is incorrect and am asking for clarification on that. To help elucidate this, I am including the test code I wrote:

#include <stdio.h>
#include <string.h>

using namespace std;

//size of individual image
int width  = 400;
int height = 400;

//size of input image
int inputWidth  = 1600;
int inputHeight = 8000;

int offset = 16;

char strInputFile[]  = "captured.raw";
char strOutputFile[] = "extracted.raw";

int main()
{
    printf( "Hi\n" );
    FILE* pInput  = NULL;
    FILE* pOutput = NULL;
    char* buf = new char[width];
    memset( buf, 0, width );

    pInput  = fopen( strInputFile,"rb" );
    pOutput = fopen( strOutputFile,"wb" );
    if( pInput && pOutput )
    {
        for( int i = 0; i < height; i++ )
        {
            //read in a row of pixels
            fread( buf, 1, width, pInput );
            //write out the row of pixels
            fwrite( buf, 1, width, pOutput );
            //move the file pointer forward to the next row of pixels
            fseek( pInput, inputWidth - width, SEEK_CUR );
        }
    }
    fclose( pInput );
    fclose( pOutput );

    return 0;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:42:44+00:00Added an answer on May 31, 2026 at 8:42 am

    Have you read about raw image format?

    This thread is a must-read: RAW Image file – what format is my data in?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Does anyone know how can I replace this 2 symbol below from the string
I have some data like this: 1 2 3 4 5 9 2 6
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.