Need help on counting and identifying every pixel's intensity(0-255) from an image.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Need help on counting and identifying every pixel's intensity(0-255) from an image.

  1. #1
    Join Date
    Sep 2009
    Posts
    17

    Need help on counting and identifying every pixel's intensity(0-255) from an image.

    Im clueless about writing a code for identifying every pixel's intensity in a 256*256 image. i managed to come up with a few ideas but i couldnt do much from the code below. help would be very appreciated thanks. im doing visual c++ on mfc for medical imaging purposes.


    Code:
    unsigned short array1[65535];  //for 256*256 image
                    // count pixel intensity
        
        for (i=0; i<255; i++)
        {                            // this is where im not sure what to put in. pls help thanks
        }
    
        count = 0;    //resets the count back to 0

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Need help on counting and identifying every pixel's intensity(0-255) from an imag

    pixel's intensity
    Intensity of what ?

  3. #3
    Join Date
    Sep 2009
    Posts
    17

    Re: Need help on counting and identifying every pixel's intensity(0-255) from an imag

    identifying the value of a pixel in a greyscale image

  4. #4
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Need help on counting and identifying every pixel's intensity(0-255) from an imag

    Ah... in that case they gave you the right answer.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center