I know that for a button, I can set its visiability by Property -> Behaviour -> Visible -> True/False.
However, how can I configurate this behaviour in my coding?
Also, how can I write...
Type: Posts; User: rosicky2005
I know that for a button, I can set its visiability by Property -> Behaviour -> Visible -> True/False.
However, how can I configurate this behaviour in my coding?
Also, how can I write...
As title, how can I install a C++ program into PDA permenantly?
Not just click "F5" to sync the program only.
And my OS is window XP, C++ developed is in Visual Studio 2005.
The PDA is hp and OS is window XP.
As title.
Should I install any C++ complier in PDA?
Visual Studio C++ is used in my program. The OS is window XP.
I am timing code of short runtime, for example
for(i = 0 to 10)
data[i] = i;
I found a timer in the following post.
http://cboard.cprogramming.com/showthread.php?s=&threadid=32885&highlight=rdtsc
However, I cannot use the function RDTSC, even if I copied the following:
...
I am trying to time my code performance.
I used clock() to time. However, it does not product precise timing. So, are there any function that I can use to get precise timing on code performance?
But how to copy byte for byte?
Here is my piece of code to do brightness processing with raw file :
#include <iostream>
#include <fstream>
using namespace std;
int main () {
int length;
The file is a raw image file, which the colour data is represented as RGBRGB.....without any header and dimension specified. My task is to read the data and use the data to do some image processing....
I have some problem reading data from a file
The format of the file is a series of number with hexagonal representation :
e.g. 1A6F3D...............
In theory, the method should be like...
thanks for your help!!
I am doing a project on image processing using Graphic Processor.
So, I am trying to find some code to deal with bmp, jpeg files but failed.
Then I post a question here~~^^
But I tried hard to find source code on google, and get no suitable result. Are there any source for image processing available?
I would like to ask, whether there is some standard library or source code, which is specialized for handling image file?
If yes, can anyone please tell me?
I used the following code to read a raw file:
const int size = 1080*1080;
int r;
unsigned char* A;
A = (unsigned char*)malloc(size*sizeof(char));
I have .raw files which is generated by Photoshop.
And I now want to read the values in .raw files to my C++ program and then
do some calculation on it.
Then I would like to ask two things....
Anyway, does anyone know how to translate this piece of persudo code into real code that can run in C++.
Thx
You are right. This is really a part of matrix calculation.
Then can I read the code as follows:
for k = 1 to N - 1
A(k+1, k+1) = A(k+1, k+1) - A(k+1, k)*A(k, k+1)
Here is a part of the persudo code I read:
for k = 1 to N - 1
A(k+1:N, k+1:N) = A(k+1:N, k+1:N) - A(k+1:N, k)*A(k, k+1:N)
endfor
So, it is swap of 1 and 0 if I run several times!!
Right??
But the code
current01 = !current01
run for several times. And current01 = 1 initially.
If !current01 is undetermined value, then is that a swap between 1 and the undetermined will happen?
First, I found some coding like this:
int current01;
current01 = !current01
what does !current01 mean? What will the value of !current01 be?
In a sample program, I found some strange declaration in it.
float deltaY = 1.0f;
float halfDeltaY = .5f;
what do they mean? Simply deltaY = 1.0 and halfDeltaY = 0.5?