Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

kaushal kishore sharma

@kaushal kishore sharma
About
Posts
21
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to display Time for an Online Test
    K kaushal kishore sharma

    Hi All, I am working on an online assessment tool for that i want to show the time to user for the test he/she would be taking so can anyone tell something about how to add time in it. I am using struts 2.0 framework. Regards Kaushal Kishore Sharma

    Java java tutorial

  • [Message Deleted]
    K kaushal kishore sharma

    [Message Deleted]

    Java

  • How to append data to na excel file using java or jsp or struts?
    K kaushal kishore sharma

    Hi All, I want to know the method for appending data on an excel file using java or jsp or struts framework. Please help me. Regards Kaushal Kishore Sharma

    Java java help tutorial question

  • Hausdorff-Based Image Comparison
    K kaushal kishore sharma

    hello everyone Can someone give me a C code of Hausdorff-Based Image Comparison. i have visited the link (http://www.cs.cornell.edu/Vision/hausdorff/hausmatch.html)but the link for the code is broken. So can someone give me the code to use it. Your Sincerely Kaushal Kishore Sharma Kaushal

    C / C++ / MFC html

  • About Position Independent of an Image to compare it
    K kaushal kishore sharma

    lets take an example. i have a image named as file1 in which i have written "CAT" and second image named as file2 in which written as "CAT". now i was firstly using getpixel for both the images at same position for comparing them, so using getpixel in fixed position lead to answer that "images are same" Now i want this same images to be in different places and then want to compare them and get the output "Images are same" So i can i do this work? Kindly help me. Your Sincerely Kaushal Kishore Sharma

    C / C++ / MFC question

  • About Position Independent of an Image to compare it
    K kaushal kishore sharma

    yes for random pixels

    C / C++ / MFC question

  • About Position Independent of an Image to compare it
    K kaushal kishore sharma

    hello everyone, i want to compare 2 images with position independent in both images, but i cant find anything for it. i was firstly using 2 images in same position and comparing using Getpixel function. So, for position independent what is to be used. Your Sincerely Kaushal Kishore Sharma Kaushal

    C / C++ / MFC question

  • Comparing images in MFC
    K kaushal kishore sharma

    Suppose i have 2 bmp files:- 1 containing alphabet AB & 2 containing alphabet AC. Now i want to check how to compare both the images by comparing first (A-A & A-C) and (A-A & A-B). As soon as A-C or A-B is found it should give a error message that images are not same. So how Can i perform this unique work in MFC. I will be very thankful to you. Thank You kaushal kishore sharma

    C / C++ / MFC c++ help tutorial question

  • Comparing bitmap problem
    K kaushal kishore sharma

    thank you sir. i am doing my selecting bitmap work using memorydc since beginning. i do not myself, where is the problem. It is executing but giving blank window and a dialog box written "pixel MFC Application has encountered a problem and needs to close. We are sorry for the inconvenience." and after this i click on debug then it is giving "Stack overflow" so please help me. Thank You kaushal kishore sharma

    C / C++ / MFC help c++ graphics question

  • Comparing bitmap problem
    K kaushal kishore sharma

    thank you led mike. i have done debugging of the program it is giving stack overflows dialog. so you can check the code where it is giving me this error. My main moto is to compare bitmaps if you have any code related to this field do help me. I will be very thankful to you. Thank You kaushal kishore sharma

    C / C++ / MFC help c++ graphics question

  • Comparing bitmap problem
    K kaushal kishore sharma

    I am using this code for comparing bitmaps. it is compiling without error but when we execute it just a blank window arrives with a error message and ask to close the program. Can anyone see what is the solution for this code. void CPixelView::OnDraw(CDC* pDC) { CPixelDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here { COLORREF color[255][255],color1[255][255]; CBitmap bitmap,bitmap1; CString file1,file2,strText; file1.Format("C:\\1.bmp"); file2.Format("C:\\3.bmp"); CDC dcMemory,dcMemory1; int r[255][255],R[255][255]; HBITMAP hBitmap1 = (HBITMAP)::LoadImage(NULL,file1,IMAGE_BITMAP, 0, 0,LR_LOADFROMFILE );//| LR_CREATEDIBSECTION); HBITMAP hBitmap2 = (HBITMAP)::LoadImage(NULL,file2,IMAGE_BITMAP, 0, 0,LR_LOADFROMFILE ); // Attach the loaded image to the CBitmap object. bitmap.Attach(hBitmap1); bitmap1.Attach(hBitmap2); dcMemory.CreateCompatibleDC(pDC); dcMemory1.CreateCompatibleDC(pDC); dcMemory.SelectObject(&bitmap); dcMemory1.SelectObject(&bitmap1); pDC->BitBlt(0,0,200,200,&dcMemory,0,0,SRCCOPY); pDC->BitBlt(300,300,700,700,&dcMemory1,0,0,SRCCOPY); //for all the pixels for(int i=0;i<48;i++) { for(int j=0;j<48;j++) { HDC hDC = ::GetDC(this->GetSafeHwnd()); HDC hDC1 = ::GetDC(this->GetSafeHwnd()); color[i][j] = ::GetPixel(hDC,i,j); ::ReleaseDC(this->GetSafeHwnd(), hDC); r[i][j]=GetRValue(color[i][j]); color1[i][j] = ::GetPixel(hDC1,i,j); ::ReleaseDC(this->GetSafeHwnd(), hDC1); R[i][j]=GetRValue(color1[i][j]); } }//got the pixel values } } Thank You kaushal kishore sharma

    C / C++ / MFC help c++ graphics question

  • full code for comparing bitmaps
    K kaushal kishore sharma

    thank you for the reply. can you tell how to make changes in the code. I am studying VC++ so not too much knowledge about the language.So can you help me with the code. Yes i am comparing both bitmap for checking whether both images are same or different. Thank You kaushal kishore Sharma kaushal..

    C / C++ / MFC

  • full code for comparing bitmaps
    K kaushal kishore sharma

    pallini..thnx..but i need a full running code for comparing 2 bitmaps.. i have posted my code but i cant understand what is wrong in my code... can you help please.. 1. void CPixelView::OnDraw(CDC* pDC) { CPixelDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here { COLORREF color[255][255],color1[255][255]; CBitmap bitmap,bitmap1; CString file1,file2,strText; file1.Format("C:\\1.bmp"); file2.Format("C:\\3.bmp"); CDC dcMemory,dcMemory1; int r[255][255],R[255][255]; // 1st image HBITMAP hBitmap1 = (HBITMAP)::LoadImage(NULL,file1,IMAGE_BITMAP, 0, 0,LR_LOADFROMFILE );//| LR_CREATEDIBSECTION); //2nd image HBITMAP hBitmap2 = (HBITMAP)::LoadImage(NULL,file2,IMAGE_BITMAP, 0, 0,LR_LOADFROMFILE ); // Attach the loaded image to the CBitmap object. bitmap.Attach(hBitmap1); bitmap1.Attach(hBitmap2); dcMemory.CreateCompatibleDC(pDC); dcMemory.SelectObject(&bitmap); dcMemory1.CreateCompatibleDC(pDC); dcMemory1.SelectObject(&bitmap1); pDC->BitBlt(0,0,200,200,&dcMemory,0,0,SRCCOPY); pDC->BitBlt(0,0,300,700,&dcMemory1,0,0,SRCCOPY); //for all the pixels for(int i=0;i<48;i++) { for(int j=0;j<48;j++) { HDC hDC = ::GetDC(this->GetSafeHwnd()); color[i][j] = ::GetPixel(hDC,i,j); ::ReleaseDC(this->GetSafeHwnd(), hDC); r[i][j]=GetRValue(color[i][j]); HDC hDC1 = ::GetDC(this->GetSafeHwnd()); color1[i][j] = ::GetPixel(hDC1,i,j); ::ReleaseDC(this->GetSafeHwnd(), hDC1); R[i][j]=GetRValue(color1[i][j]); } }//got the pixel values } }

    C / C++ / MFC

  • full code for comparing bitmaps
    K kaushal kishore sharma

    sry my friend.. i have account on paypal but i have not done any work yet due to busy in college..but if you can provide me the code for this i will be very thankful to you.. rest is your wish..thanks for the reply..

    C / C++ / MFC

  • full code for comparing bitmaps
    K kaushal kishore sharma

    can anyone send me full code for comparing two bitmaps... thank you..

    C / C++ / MFC

  • Comparing images.... Visual C++ (MFC)
    K kaushal kishore sharma

    can you send me the code for comparing 2 images

    C / C++ / MFC c++ help question

  • Can anyone tell what is wromg with this code
    K kaushal kishore sharma

    void CPixelView::OnDraw(CDC* pDC) { CPixelDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here { COLORREF color[255][255],color1[255][255]; CBitmap bitmap,bitmap1; CString file1,file2,strText; file1.Format("C:\\1.bmp"); file2.Format("C:\\3.bmp"); CDC dcMemory,dcMemory1; int r[255][255],R[255][255]; HBITMAP hBitmap1 = (HBITMAP)::LoadImage(NULL,file1,IMAGE_BITMAP, 0, 0,LR_LOADFROMFILE );//| LR_CREATEDIBSECTION); HBITMAP hBitmap2 = (HBITMAP)::LoadImage(NULL,file2,IMAGE_BITMAP, 0, 0,LR_LOADFROMFILE ); // Attach the loaded image to the CBitmap object. bitmap.Attach(hBitmap1); bitmap1.Attach(hBitmap2); dcMemory.CreateCompatibleDC(pDC); dcMemory.SelectObject(&bitmap); dcMemory1.CreateCompatibleDC(pDC); dcMemory1.SelectObject(&bitmap1); pDC->BitBlt(0,0,200,200,&dcMemory,0,0,SRCCOPY); pDC->BitBlt(0,0,300,700,&dcMemory1,0,0,SRCCOPY); //for all the pixels for(int i=0;i<48;i++) { for(int j=0;j<48;j++) { HDC hDC = ::GetDC(this->GetSafeHwnd()); color[i][j] = ::GetPixel(hDC,i,j); ::ReleaseDC(this->GetSafeHwnd(), hDC); r[i][j]=GetRValue(color[i][j]); HDC hDC1 = ::GetDC(this->GetSafeHwnd()); color1[i][j] = ::GetPixel(hDC1,i,j); ::ReleaseDC(this->GetSafeHwnd(), hDC1); R[i][j]=GetRValue(color1[i][j]); } }//got the pixel values } } i am inserting 2 images in this ondraw command and i want to calculate the pixel of both the pictures to compare it... can anyone tell why it is not working..complilng is done correctly but when exceute it lead to open and window with error file.. please tell asap .... thank you..

    C / C++ / MFC c++ graphics help question

  • MFC Programming Problem.
    K kaushal kishore sharma

    thank you mark. can you send me your email id iacan send my code and then you might be able to understood my problem your sincerely kaushal kishore sharma

    C / C++ / MFC help c++ com graphics tutorial

  • MFC Programming Problem.
    K kaushal kishore sharma

    thank you sir. I am searching for net for few days about this part when i create a CColorDlg class the VC++ gets hangs. Firstly sir i want to know that am i going in right direction for finding pixel coordinates aur not? then sir i tried out CColordlg for it it gets hangs. So sir i you have any code where i can include it in my project part i will be very thankful to you. Your Sincerely Kaushal Kishore Sharma

    C / C++ / MFC help c++ com graphics tutorial

  • MFC Programming Problem.
    K kaushal kishore sharma

    thank you sir for the reply. Sir i am trying to take a bitmap image suppose A,B,C,D these are 4 alpha. used in image with different colors. Now my task is to whenever we put the mouse on the alpha. i would like to get the pixels coordinates. So can you help how should or what should be done in my project part. i can send you the detail if you want of the program. Your Sincerely Kaushal kishore Sharma

    C / C++ / MFC help c++ com graphics tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups