5 Replies - 2479 Views - Last Post: 02 July 2009 - 02:05 AM Rate Topic: -----

#1 su_marvel  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-June 09

How to convert a long integer array to image in C++

Posted 29 June 2009 - 08:13 AM

Hi all,

I'm working on creating an application which acquires image data from a camera and display it.

I have right now acquired image data from camera. The data is in the form of long integer array (32-bit signed integers). I would like to visualise this data. I am not sure how to display the data as an image. Could you please help me?

I am using Microsoft visual studio C++ 2008.

Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: How to convert a long integer array to image in C++

#2 prabh  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 3
  • View blog
  • Posts: 381
  • Joined: 27-December 08

Re: How to convert a long integer array to image in C++

Posted 29 June 2009 - 10:20 AM

View Postsu_marvel, on 29 Jun, 2009 - 07:13 AM, said:

Hi all,

I'm working on creating an application which acquires image data from a camera and display it.

I have right now acquired image data from camera. The data is in the form of long integer array (32-bit signed integers). I would like to visualise this data. I am not sure how to display the data as an image. Could you please help me?

I am using Microsoft visual studio C++ 2008.

Thanks



hey
can you tell me is what type of data you have
i mean you now what that data contains
Was This Post Helpful? 0
  • +
  • -

#3 oikonen  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 31
  • Joined: 03-December 07

Re: How to convert a long integer array to image in C++

Posted 29 June 2009 - 11:41 AM

Have you looked this? http://www.relisoft....n32/canvas.html
And use TColor (or whatever) like 0x00000000 -> A,B,G,R not A,R,G,B

This post has been edited by oikonen: 29 June 2009 - 11:45 AM

Was This Post Helpful? 0
  • +
  • -

#4 su_marvel  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-June 09

Re: How to convert a long integer array to image in C++

Posted 30 June 2009 - 01:10 AM

The camera i;m using is a hyperspectral camera. The hyperspectral data contains R,G,B and wavelength value too.
Was This Post Helpful? 0
  • +
  • -

#5 oikonen  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 31
  • Joined: 03-December 07

Re: How to convert a long integer array to image in C++

Posted 30 June 2009 - 05:11 AM

So, swap B and R. And if the wave length are the upper 16 bits as i understood, mask them away. Truth is i don't know what to do with that
data, is it data what includes all the color information what you can achieve with 16bit? What is the file extension. Tell me and then i tell you what do with the data. Deal? Sorry, i didn't remember that it was 32bit. But anyway, same thing. Tell me about the file extension, i try to get more info about it. And of course you have to get pictures to your - whatever...but you have to code yourself. I use CodeGear BCB2007), do we have a collision of intrests? I mean the code is not necesserily 1:1.

This post has been edited by oikonen: 30 June 2009 - 05:20 AM

Was This Post Helpful? 0
  • +
  • -

#6 su_marvel  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-June 09

Re: How to convert a long integer array to image in C++

Posted 02 July 2009 - 02:05 AM

Hi ya..

I have given you the worng information in my previous messgae. The buffer has 32 bit values. So I think the data has RGBA values of 8bit each. I am not quite sure. I would like to display this data from buffer. Do u recommend any c++ visualisation libraries that can do this? or can i do this with picturebox control in windows forms using GDI+ ?
thanks for your help.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1