Monday, June 9, 2008
Saturday, June 7, 2008
Friday, June 6, 2008
Tired time
Tired time for me is 3:30 Pm everyday....
Now I only want to sleep.....
But works on the table are waiting for me ..
So...
just still living and working..
Now I only want to sleep.....
But works on the table are waiting for me ..
So...
just still living and working..
Thursday, June 5, 2008
Image coordinate and World coordinate
If you want to show a world coordinate image by OpenCv or Matlab, you need to know the difference between Image coordinate system and the world coordinate system.
The main difference is the original point, which is uper-left in image coordinate and bottom-middle in IPM (Inverse projection mapping)world coordinate.
The main difference is the original point, which is uper-left in image coordinate and bottom-middle in IPM (Inverse projection mapping)world coordinate.
Wednesday, June 4, 2008
Copy and cat the string (Char*) in C++
char* newname=new char[100];
char* new="new";
char* name="name";
//first you need strcpy to copy content to newname. You can't use strcat instead of strcpy first.
strcpy(newname,new);//newname="new"
//Now you can use strcat to cat the string. But be careful about the string length.. Max length is 100-1..
strcat(newname,name);//newname="newname"
if(newname)
{delete[] newname;}
char* new="new";
char* name="name";
//first you need strcpy to copy content to newname. You can't use strcat instead of strcpy first.
strcpy(newname,new);//newname="new"
//Now you can use strcat to cat the string. But be careful about the string length.. Max length is 100-1..
strcat(newname,name);//newname="newname"
if(newname)
{delete[] newname;}
Subscribe to:
Posts (Atom)