Click here to Skip to main content
15,895,011 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: How to close WiFi & BT in WinCE ? Pin
E_Gold9-Mar-09 20:36
E_Gold9-Mar-09 20:36 
QuestionFileUpload Control Pin
AmmarHaider8-Mar-09 6:16
AmmarHaider8-Mar-09 6:16 
Questiondatabase under query analyser of win mobile 5.0 emulator Pin
Deepali Khalkar7-Mar-09 4:24
Deepali Khalkar7-Mar-09 4:24 
AnswerRe: database under query analyser of win mobile 5.0 emulator Pin
lakpa13-Mar-09 1:59
lakpa13-Mar-09 1:59 
QuestionChange the default web browser of window mobile vb.net Pin
~Khatri Mitesh~7-Mar-09 0:39
~Khatri Mitesh~7-Mar-09 0:39 
QuestionConnecting C# in VS 2008 to SQL server management studio Pin
Deepali Khalkar6-Mar-09 5:34
Deepali Khalkar6-Mar-09 5:34 
AnswerRe: Connecting C# in VS 2008 to SQL server management studio Pin
lakpa13-Mar-09 1:57
lakpa13-Mar-09 1:57 
QuestionJPEG image comparison Pin
hemlat6-Mar-09 0:05
hemlat6-Mar-09 0:05 
Hi,



I am developing an application in win32 in which I need to compare two JPEG images files of resolution 240x320 got from Windows mobile after compressing from the .bmp images. I have tried reading the r,g,b values from two images and tried to compare them. But when I am reading them I am getting the same r,g,b values for all the any JPEG images though they are dissimilar.

Here is my code:


CODE
#include "stdafx.h"
#include "stdio.h"


typedef struct
{
BYTE R,G,B;
}colorRGB;
colorRGB *RGB_buffer1,*RGB_buffer2;
void CompareImage()
{

unsigned char tmpBuf1[651],tmpBuf2[651];
int i=0;
WORD nrline;
FILE *Img1=fopen("C:\\Program Files\\MTAF\\Reports\\TC_3_2422009_132042203_4.jpg","r");
FILE*Img2=fopen("D:\\TC_1_2422009_131913187_1.jpg","r");
fread(tmpBuf1,1,651,Img1);
fread(tmpBuf2,1,651,Img2);
int height=320;
int width=240;
RGB_buffer1=(colorRGB *)(malloc(3*width*height));
RGB_buffer2=(colorRGB *)(malloc(3*width1*height1));
for(nrline=0; nrline<height;> {
fread(RGB_buffer1+ nrline*width,1, width*3,Img1);
fread(RGB_buffer2+ nrline*width,1, width*3,Img2);
}
fclose(Img1);
fclose(Img2);
for(i=0;i<height;i++)>
{
if((RGB_buffer1[i].R!=RGB_buffer2[i].R)&&(RGB_buffer1[i].G!=RGB_buffer2[i].G)&&(RGB_buffer1[i].B!=RGB_buffer2[i].B))
{
break;
}
}
if(i==height)
MessageBox(NULL,TEXT("Images are same"),NULL,NULL);
free(RGB_buffer1);
free(RGB_buffer2);

}


Can anybody suggest what am I doing wrong. Or there any the best way to do this JPEG image files comparison.


Thanks in advance for any help.


Regards,

Hema.
AnswerRe: JPEG image comparison Pin
Joel Ivory Johnson7-Mar-09 16:26
professionalJoel Ivory Johnson7-Mar-09 16:26 
GeneralRe: JPEG image comparison Pin
hemlat9-Mar-09 19:00
hemlat9-Mar-09 19:00 
QuestionHelp needed for bluetooth application... Pin
Jain Vijay5-Mar-09 18:57
Jain Vijay5-Mar-09 18:57 
AnswerRe: Help needed for bluetooth application... Pin
Joel Ivory Johnson7-Mar-09 16:03
professionalJoel Ivory Johnson7-Mar-09 16:03 
QuestionEmbedded C++ SDK problems Pin
gauravxxx5-Mar-09 7:36
gauravxxx5-Mar-09 7:36 
AnswerRe: Embedded C++ SDK problems Pin
daniel9729-Apr-09 20:51
daniel9729-Apr-09 20:51 
QuestionInternet connection on win mobile 5.0 emulator Pin
Deepali Khalkar5-Mar-09 5:15
Deepali Khalkar5-Mar-09 5:15 
AnswerRe: Internet connection on win mobile 5.0 emulator Pin
PavanPareta5-Mar-09 17:40
PavanPareta5-Mar-09 17:40 
AnswerRe: Internet connection on win mobile 5.0 emulator Pin
ankita patel5-Mar-09 18:58
ankita patel5-Mar-09 18:58 
AnswerRe: Internet connection on win mobile 5.0 emulator Pin
~Khatri Mitesh~7-Mar-09 0:45
~Khatri Mitesh~7-Mar-09 0:45 
QuestionHow can i access mobile calender from PC side? Pin
Member 40849644-Mar-09 3:08
Member 40849644-Mar-09 3:08 
AnswerRe: How can i access mobile calender from PC side? Pin
Joel Ivory Johnson5-Mar-09 7:51
professionalJoel Ivory Johnson5-Mar-09 7:51 
QuestionPassing multiple parameters to update query in C# Pin
Deepali Khalkar4-Mar-09 1:25
Deepali Khalkar4-Mar-09 1:25 
AnswerRe: Passing multiple parameters to update query in C# Pin
Rupesh Kumar Swami4-Mar-09 2:25
Rupesh Kumar Swami4-Mar-09 2:25 
QuestionWriting SQL statement in C# Pin
Deepali Khalkar3-Mar-09 6:30
Deepali Khalkar3-Mar-09 6:30 
AnswerRe: Writing SQL statement in C# Pin
PavanPareta3-Mar-09 23:31
PavanPareta3-Mar-09 23:31 
AnswerRe: Writing SQL statement in C# Pin
ziwez06-Mar-09 11:54
ziwez06-Mar-09 11:54 

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.