Click here to Skip to main content
15,922,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can I debug commad line argument Module? Pin
Cedric Moonen25-Mar-07 21:27
Cedric Moonen25-Mar-07 21:27 
GeneralRe: Can I debug commad line argument Module? Pin
amitmistry_petlad 25-Mar-07 22:38
amitmistry_petlad 25-Mar-07 22:38 
AnswerRe: Can I debug commad line argument Module? Pin
Paresh Chitte25-Mar-07 21:22
Paresh Chitte25-Mar-07 21:22 
GeneralRe: Can I debug commad line argument Module? Pin
amitmistry_petlad 25-Mar-07 22:39
amitmistry_petlad 25-Mar-07 22:39 
AnswerRe: Can I debug commad line argument Module? Pin
David Crow26-Mar-07 3:08
David Crow26-Mar-07 3:08 
Questionwriting classes for FFT, new and confused. help! Pin
cedance25-Mar-07 18:27
cedance25-Mar-07 18:27 
AnswerRe: writing classes for FFT, new and confused. help! Pin
Parthi_Appu25-Mar-07 19:27
Parthi_Appu25-Mar-07 19:27 
AnswerRe: writing classes for FFT, new and confused. help! Pin
cp987625-Mar-07 20:59
cp987625-Mar-07 20:59 
It sounds like you are asking how to design an object-oriented solution to your problem - you know how to program in C, but with this C++ stuff - how should you structure your code, what classes you should design. If this is the case, I'd suggest starting with something simple - I suspect that you will be marked on whether it works rather than on the architecture.

I have only a superficial understanding of the jpeg format, but from memory an image is based around many small pixel blocks (8x8 if I recall). If I am correct, then this sounds like a great little class to write, and an image / file would simply consist of a collection of these blocks. Basically the class would store the pixels, be able to compress / uncompress the data, be able to read / write files and be able to input / output a bitmap. If you wrote this class, say PixelBlock, then the matter of reading a file would be creating and reading in an array of PixelBlocks, displaying on the screen you would simply uncompress each one and convert to a bitmap, you could create a complete bitmap from all the smaller ones, and then apply your filtering, etc... If you allow the size of the pixel block to be a parameter, then the image could be a single pixelblock formed from all the component pixel blocks, you could have your filtering as a member function of the PixelBlock class so you could perform it on blocks or sub-blocks of any size, etc...

Have I given you enough idesa?







Peter

"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

GeneralRe: writing classes for FFT, new and confused. help! Pin
cedance25-Mar-07 21:54
cedance25-Mar-07 21:54 
GeneralRe: writing classes for FFT, new and confused. help! Pin
cp987625-Mar-07 22:12
cp987625-Mar-07 22:12 
GeneralRe: writing classes for FFT, new and confused. help! Pin
cedance25-Mar-07 22:54
cedance25-Mar-07 22:54 
GeneralRe: writing classes for FFT, new and confused. help! Pin
cp987626-Mar-07 0:56
cp987626-Mar-07 0:56 
GeneralRe: writing classes for FFT, new and confused. help! Pin
cp987626-Mar-07 20:30
cp987626-Mar-07 20:30 
QuestionHow to add new/custom event in Visual C++ Pin
HandyC++25-Mar-07 18:18
HandyC++25-Mar-07 18:18 
AnswerRe: How to add new/custom event in Visual C++ Pin
Parthi_Appu25-Mar-07 19:10
Parthi_Appu25-Mar-07 19:10 
GeneralRe: How to add new/custom event in Visual C++ Pin
HandyC++25-Mar-07 21:12
HandyC++25-Mar-07 21:12 
QuestionCView/ new line Pin
_808625-Mar-07 18:16
_808625-Mar-07 18:16 
AnswerRe: CView/ new line Pin
Nibu babu thomas25-Mar-07 18:58
Nibu babu thomas25-Mar-07 18:58 
GeneralRe: CView/ new line Pin
_808625-Mar-07 19:25
_808625-Mar-07 19:25 
QuestionHow can i change CTreeCtrl properties in run time ? Pin
Yanshof25-Mar-07 18:09
Yanshof25-Mar-07 18:09 
AnswerRe: How can i change CTreeCtrl properties in run time ? [modified] Pin
Parthi_Appu25-Mar-07 18:54
Parthi_Appu25-Mar-07 18:54 
QuestionItem's problem of states and action Pin
Chen-XuNuo25-Mar-07 17:44
Chen-XuNuo25-Mar-07 17:44 
AnswerRe: Item's problem of states and action Pin
Nibu babu thomas25-Mar-07 19:13
Nibu babu thomas25-Mar-07 19:13 
GeneralRe: Item's problem of states and action Pin
Chen-XuNuo26-Mar-07 4:09
Chen-XuNuo26-Mar-07 4:09 
QuestionSTL trickery [modified] Pin
User 58385225-Mar-07 16:07
User 58385225-Mar-07 16:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.