|
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
|
|
|
|
|
|
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
|
|
|
|
|
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
Dream Ur Destiny
|
|
|
|
|
Hello all;
I have build an mfc application and added a microsoft web browser activex control to the application.
Now I need to record (save into a file) the position of user mouse clicks. How do i do that ??
Thanx
llp00na
|
|
|
|
|
|
I would like to create a program that would start another program running (multiple times but I'll start with just once). I'm not sure the best way to go about this, any thoughts? I was thinken maybe initiating a bat file. however I am not sure about how to go about this either. I've tried the open(c:\\M2.bat,...) function but I seem to get an -1 in the handle. any thoughts would be great.
I'm using C++ Builder.
Cheers*
|
|
|
|
|
Debs* wrote: I would like to create a program that would start another program running (multiple times but I'll start with just once).
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
Cheers* Exactly what I needed.
|
|
|
|
|
how to determine programmly if the floating number gets this value?
its after beign printed out thru printf() that reveals the floating number equal to such strange value
|
|
|
|
|
float s have 3 unprintable values :
- NaN : Not a number (like tan(pi/2))
- negative infinite
- positive infitite
here, you have a NaN ...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
how to dermine if it is NaN or positive, negative infinity?
9ine
|
|
|
|
|
|
It stands for INDefinite, which is a quiet NaN.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
I'm using the grid control from
http://www.codeproject.com/miscctrl/gridctrl.asp[^]
I placed a custom control, and made it of class MFCGridCtrl as the article says to.
And I #include "gridctrl.h". However I dont see this custom control (which I name IDC_GRID) in the class wizard, in the member variables tab. What do I need to do to make this grid show up in the cwizard?
thanks,
sb
|
|
|
|
|
Remove (or bettter, change its name ) the .clw file in your project folder. Then reopen class wizard and it will ask you to rebuild the file from source, say yes.
This should work.
|
|
|
|
|
Thanks!Appreciate your help!
I see it now.
|
|
|
|
|
|
I'm using VC++ Express edition to compile an old MFC project.
(I have still install VC++ 5.0)
After including the proper include directory I was able to properly
built and run it but in DEBUG only. When I turn to the release I got the following
message:
C:\Programmi\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin1.inl(1014) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Does anyone can help me ?
Ciao
Andrea
|
|
|
|
|
show us that line of code (afxwin1.inl line 1014)
it seems that it declares a variable without type specification...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Here it is
AFXWIN_INLINE CMenu::operator==(const CMenu& menu) const
{ return ((HMENU) menu) == m_hMenu; }
but HMENU should be declare and the strange it's that in
debug mode it works perfectly
Thank
|
|
|
|
|
AndreaF wrote: AFXWIN_INLINE CMenu::operator==(const CMenu& menu) const
{ return ((HMENU) menu) == m_hMenu; }
shouldn't it be this instead ?
AFXWIN_INLINE <code>BOOL</code> CMenu::operator==(const CMenu& menu) const
{ return ((HMENU) menu) == m_hMenu; }
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
I did not wrote that file it comes from the visual C++ 5.0 MFC include.
So to edit it it's a bad idea I think.
Thank
|
|
|
|