Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Serial Communication and Picture Display in MFC

Serial Communication and Picture Display in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++hardwareperformancehelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JeremieJ
    wrote on last edited by
    #1

    I am a student at DeVry University and i'm working on my senior project. We are making an iris scanner that takes a picture of the eye and we manually click points to be compared with pictures saved in the memory and determine wether or not that person gets access. What we are trying to do is get a picture from a camera that is uncompressed and compress it into a picture format probably .bmp because it's easier to work with in MFC. We are trying to make and MFC gui that will receive the picture serially from the camera or from a pre-defined location on the hard drive and display it to the screen. Then we want to be able to click anywhere on the picture and get the X and Y coordinates and the color of that certain pixel. Now I have been looking for serial communication and picture display examples, but the serial examples are very different from one to another and I don't really understand what is all needed to just set it up to receive data like when a button is pressed or when it receives and event. The picture display examples I have seen all want you to already have the pictures and none of them show you how to open a picture from a file or just automatically display the picture from a pre-defined location. Also I was looking at a function that formats a picture from a stream of data, but i'm not sure what format the picture is comming in from the camera. It is a CCD camera that is analog so we are running it through an ADC to make it digital but we don't know what format the picture is comming in as becuase it is a full motion camera so we will have to activate it and de-activate it and catch that data stream. So we are kind of lost because all of this stuff is new to us besides the programming that will be done on the microcontroller. We have done C++/MFC/C but we haven't used any of these functions or procedures so if ANYONE can help me I would greatly appreciate it. Thanks, Jeremie Jackson

    M 1 Reply Last reply
    0
    • J JeremieJ

      I am a student at DeVry University and i'm working on my senior project. We are making an iris scanner that takes a picture of the eye and we manually click points to be compared with pictures saved in the memory and determine wether or not that person gets access. What we are trying to do is get a picture from a camera that is uncompressed and compress it into a picture format probably .bmp because it's easier to work with in MFC. We are trying to make and MFC gui that will receive the picture serially from the camera or from a pre-defined location on the hard drive and display it to the screen. Then we want to be able to click anywhere on the picture and get the X and Y coordinates and the color of that certain pixel. Now I have been looking for serial communication and picture display examples, but the serial examples are very different from one to another and I don't really understand what is all needed to just set it up to receive data like when a button is pressed or when it receives and event. The picture display examples I have seen all want you to already have the pictures and none of them show you how to open a picture from a file or just automatically display the picture from a pre-defined location. Also I was looking at a function that formats a picture from a stream of data, but i'm not sure what format the picture is comming in from the camera. It is a CCD camera that is analog so we are running it through an ADC to make it digital but we don't know what format the picture is comming in as becuase it is a full motion camera so we will have to activate it and de-activate it and catch that data stream. So we are kind of lost because all of this stuff is new to us besides the programming that will be done on the microcontroller. We have done C++/MFC/C but we haven't used any of these functions or procedures so if ANYONE can help me I would greatly appreciate it. Thanks, Jeremie Jackson

      M Offline
      M Offline
      mahade1
      wrote on last edited by
      #2

      well, I sure dont have the answer to ur questions, but have a suggestion to make. Why dont u try organising ur huge question into paragraphs, so that will improve its readability!!! Also I didnt get what u meant by the following: JeremieJ wrote: The picture display examples I have seen all want you to already have the pictures and none of them show you how to open a picture from a file or just automatically display the picture from a pre-defined location. Good Luck with ur project. Mahadevan.

      J 1 Reply Last reply
      0
      • M mahade1

        well, I sure dont have the answer to ur questions, but have a suggestion to make. Why dont u try organising ur huge question into paragraphs, so that will improve its readability!!! Also I didnt get what u meant by the following: JeremieJ wrote: The picture display examples I have seen all want you to already have the pictures and none of them show you how to open a picture from a file or just automatically display the picture from a pre-defined location. Good Luck with ur project. Mahadevan.

        J Offline
        J Offline
        JeremieJ
        wrote on last edited by
        #3

        I mean that they want you to code the picture into the program and they don't show you how to open a picture from the hard drive and display it to the screen or automatically display a picture to the screen when u press a button. You know like open a picture and display it to the screen like paint.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups