CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: a_sonhye

Search: Search took 0.06 seconds.

  1. Re: Find the Reduced Row Echelon matrix from Numerical Recipe in C

    I may need to put the source code here but it's quite long just in case you know the solution but don't want to go back to look at the code on the book. I am now trying to understand the code and the...
  2. Find the Reduced Row Echelon matrix from Numerical Recipe in C

    Hello All,

    If anyone is familar with matrix functions from the book Numerical Recipe in C/C++, please help me. In the book, the function GaussJordan(Matrix &A, Matrix &b) can help us find the...
  3. Re: How to display image (from CImage) to Picture Control

    Yes, it work fine.
    Thank you everybody who contribute into this thread ^^
  4. Re: How to display image (from CImage) to Picture Control

    Hello ovidiucucu,

    Thank you for your comment and yes I cut some portion of code since I think it is not necessary to present here but it seems to be necessary now.

    Also, I set all properties as...
  5. Re: How to display image (from CImage) to Picture Control

    Hello VictorN,

    I don't know why but declaring as an instance of CFMImage, I can load image to picture control. But using pointer does not. I does new the CFMImage object and the pointer pointer to...
  6. Re: How to display image (from CImage) to Picture Control

    I don't think it is a matter of defining as pointer or object. Actually, the image object can be declared as an object as you said.
    But is this related to the result that I cannot show image in the...
  7. Re: How to display image (from CImage) to Picture Control

    Answer VictorN

    1. I would like to show the image again if the dialog is re-open.
    2. Yes, I did.

    But it displays nothing.
  8. How to display image (from CImage) to Picture Control

    Dear All,

    I have create a dialog and place a picture control into it which will be displayed as a preview when I click a browse botton. In this control, I would like to display images (.jpg, .bmp,...
  9. Replies
    19
    Views
    13,055

    Re: How to delete the last element in std::map??

    Thank you Paul McKenzie and monarch_dodra for adding more solutions. I will take a carefully look into the solution again (+learning more)

    Thank you all for very quick reply for my question.
  10. Replies
    19
    Views
    13,055

    Re: How to delete the last element in std::map??

    Ah! Yep! That's correct. So, that's why my program breaks. Thank you ^^
  11. Replies
    19
    Views
    13,055

    Re: How to delete the last element in std::map??

    Thank you all that coming to give me solutions and comments.

    I finally take the suggestion from Philip Nicoletti. It works very well.

    matching.erase(--matching.rbegin().base());

    However,...
  12. Replies
    19
    Views
    13,055

    How to delete the last element in std::map??

    I have a sorting multimap and I would like to delete the last element. How can I delete the last element??

    I have tried reverse::iterator or delete at the position iter = map.end()-1; but they all...
  13. Re: How to resize the image to fit View size while retain the same shape of image??

    Hello srelu,

    Thank you very much. This code works as I would like to have.

    The problem I have only now is that the color of the image is quite strange. I think this is due to the StretchBlt...
  14. Re: How to resize the image to fit View size while retain the same shape of image??

    Sorry for disappearing for long time. I've been out of school.

    Hello srelu, thank you for your suggestion and coding. I will try now and will let u know the results.
  15. Re: How to resize the image to fit View size while retain the same shape of image??

    Thank you for your suggestion.

    Do you have any further suggestion about centering the image in CView??

    Million thanks.
  16. Re: How to resize the image to fit View size while retain the same shape of image??

    Thank you Marc G for managing my code.

    Hi hoxsiew, I did calculate the ratio and use StretchBlt to stretch the image. The results are not as my expected. I will recheck the ratio calculating...
  17. Re: How to resize the image to fit View size while retain the same shape of image??

    Hi Programartist,

    Thank you for your comment. But that is just strech the image to the same size as the window. What I want is to display the image on the window while retain its same shape. Like...
  18. How to resize the image to fit View size while retain the same shape of image??

    Hello All,

    I need your suggestion on displaying image on a CView. When I open an image to display, I want the image to "be resized" if it is bigger than the view while retain the original shape of...
  19. Re: Please help! -- C-style 2D array containing std::vector

    Hello, Lindley.

    Thank you. I tried it and it work. Thanks ^^;;
  20. Re: Please help! -- C-style 2D array containing std::vector

    Thank you very much.

    I got it after copying the code and compile it. Now it's more clear to me. But, can I ask one more question? Just for my curious.

    From my code at the top most post, how can...
  21. Re: Please help! -- C-style 2D array containing std::vector

    Hi, JohnW. Thank you very much.

    I'm new for STL.
    And my previous code was programmed that way but at that time, I use the struct below so the code work fine.
    But now, I replace this struct with...
  22. Re: Please help! -- C-style 2D array containing std::vector

    My vector is just stl vector.

    typedef vector<int> VEC_INT;
  23. Please help! -- C-style 2D array containing std::vector

    I know it's weird but I would like to create a 2D c-style array. Each array element stores a vector of int. The result will produce 3D array of int.

    I can compile my code but it seems like...
  24. How to add scroll bar to the window created by OpenCV?

    How can I add scroll bar to the image window created by OpenCV???

    As far as I know, we call two functions in OpenCV to display images.

    cvNamedWindow( "Example1", CV_WINDOW_AUTOSIZE );
    ...
  25. How to display the OpenCV image in CView (MFC)

    Hello All~~

    Does anyone know how to display the OpenCV image structure "IplImage" in MFC CView?

    Typically, many example shows that after we called 'cvLoadImage()', it will call 'cvShowImage' to...
Results 1 to 25 of 25





Click Here to Expand Forum to Full Width

Featured