image to matrix
-
i am using visual c++ 2005 in my project,i am stuck in one step i.e., converting any image given to matrix, this matrix is very essential for the futher processing my project, can any one please help in telling me how to convert the given image to matrix
-
i am using visual c++ 2005 in my project,i am stuck in one step i.e., converting any image given to matrix, this matrix is very essential for the futher processing my project, can any one please help in telling me how to convert the given image to matrix
You have to be way more specific. How is your image stored? How are you reading it in? John
-
i am using visual c++ 2005 in my project,i am stuck in one step i.e., converting any image given to matrix, this matrix is very essential for the futher processing my project, can any one please help in telling me how to convert the given image to matrix
what do you mean by "matrix" ? Cleek | Image Toolkits | Thumbnail maker
-
You have to be way more specific. How is your image stored? How are you reading it in? John
to be more specific here matrix means a two dimensional array of interger, here we have to find the intensity of each pixel and store then int he array for example consider an image with resoultion 5x5 if the intesity of 0x0 pixel is 10 and 0x1 pixel is 20 then the matrix will be 10 20 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. and so on
-
what do you mean by "matrix" ? Cleek | Image Toolkits | Thumbnail maker
thank u for the participation in solving the problem sir, to be more specific here matrix means a two dimensional array of interger, here we have to find the intensity of each pixel and store then in the array for example consider an image with resoultion 5x5 if the intesity of 0x0 pixel is 10 and 0x1 pixel is 20 then the matrix will be 10 20 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. and so on and one more thing is, i am not able to find a function in visual c++ 2005 to get the intensity of the pixel, for example C-language provides getpixel function, in vc++ this function is there but it operates only on bitmap files but i need to find intensity of the pixel even to jpg, and other forms of the image file
-
thank u for the participation in solving the problem sir, to be more specific here matrix means a two dimensional array of interger, here we have to find the intensity of each pixel and store then in the array for example consider an image with resoultion 5x5 if the intesity of 0x0 pixel is 10 and 0x1 pixel is 20 then the matrix will be 10 20 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. and so on and one more thing is, i am not able to find a function in visual c++ 2005 to get the intensity of the pixel, for example C-language provides getpixel function, in vc++ this function is there but it operates only on bitmap files but i need to find intensity of the pixel even to jpg, and other forms of the image file
this is a really big task. i recommend you look into something like GDI+, or a toolkit like CIXImage (here on CodeProject), or even a commercial product (for example, the one at the bottom of this post). if you want to be able to read any kind of image file into a buffer that you can pick pixels from, you're going to have to spend some time and effort with a toolkit that can handle all the file format parsing for you. Cleek | Image Toolkits | Thumbnail maker
-
this is a really big task. i recommend you look into something like GDI+, or a toolkit like CIXImage (here on CodeProject), or even a commercial product (for example, the one at the bottom of this post). if you want to be able to read any kind of image file into a buffer that you can pick pixels from, you're going to have to spend some time and effort with a toolkit that can handle all the file format parsing for you. Cleek | Image Toolkits | Thumbnail maker
thank u for posting ur suggestion sir, is there any other way so that i can distinguish each and every pixel apart from intensity of the pixel
-
thank u for posting ur suggestion sir, is there any other way so that i can distinguish each and every pixel apart from intensity of the pixel
Hi, AFIK there is no other way to distinguish pixels becuase an image is a record of intensity values. But you can use the derivatives of the intensity value like brightness, contrast, color, gamma etc... Regarding your first question...I second chris...because its a huge task to convert any image into a matrix form. Better you opt any tools or libraries. Or else do it for the widely used image formats instead of all. Bye, Cool Ju :cool: Dream Ur Destiny