Forum: C Mar 1st, 2005 |
| Replies: 12 Views: 39,054 no, this is good enough for my use,
as i just need a measure of time taken for the whole code as one, and time taken for each of the operation in the code done seperately.
but if there is a... |
Forum: C Feb 28th, 2005 |
| Replies: 12 Views: 39,054 i was just wondering, is there a convertion ratio between the clock ticks and the actual time in milliseconds?
i also understand the clock ticks vary according to the processor, right?? |
Forum: C Feb 25th, 2005 |
| Replies: 12 Views: 39,054 the code is working fine, except that the time it calculates is a bit lesser than what my stopclock shows.
is it the case here?? |
Forum: C Feb 25th, 2005 |
| Replies: 12 Views: 39,054 i am using C.
i will check them out, thanks.. |
Forum: C Feb 25th, 2005 |
| Replies: 12 Views: 39,054 Hi,
i would like to calculate the execution time of my program.
is there any function available to enable it?? |
Forum: C Feb 7th, 2005 |
| Replies: 8 Views: 3,882 u can use this code;
#include<stdio.h>
int main(void)
{
FILE *fp;
unsigned char image[256][256];
int r,c;
if((fp = fopen("f16.dat","r+")) == NULL) |
Forum: C++ Jan 28th, 2005 |
| Replies: 3 Views: 15,028 one easy way to do it is,
declare image and header array;
unsigned char Header[0x435],image[256][256];
and to read image; |
Forum: C Jan 13th, 2005 |
| Replies: 7 Views: 4,689 |
Forum: C++ Jan 10th, 2005 |
| Replies: 9 Views: 12,885 i really liked that do_what_i_want_it_to_do(); function and the baby-safe example..
but the problem is, the whole porgram is some 500 codes, so i submitted only the pertinent code.
i just want to... |
Forum: C++ Jan 7th, 2005 |
| Replies: 9 Views: 12,885 if i am any better in C, why should i ask for help. :-)
with what little time i have, i have to finish the job at hand, and with what little C expertise i have. so... |
Forum: C++ Jan 7th, 2005 |
| Replies: 9 Views: 12,885 thanks for the help,
google yields hits, ok. but the problem is that all the codes are in high level C, unfortunately i am not that good in C. so i want the coding in simple C.
ok i can outline... |
Forum: C Jan 6th, 2005 |
| Replies: 7 Views: 4,689 Hi,
i am using pow command quite frequently in my codes, and i have a feeling that i may be using it incorrectly.
foe ex:
pow(image[x][y],2);
image[x][y] is unsigned char and 2 is numeric, so... |
Forum: C++ Jan 5th, 2005 |
| Replies: 9 Views: 12,885 Hi,
i am trying to implement gabor filter for image enhancement.
if someone has any code snippet or pseudocode or any idea of implementing it in C, please help me out with it.
thanks. |
Forum: C Dec 9th, 2004 |
| Replies: 13 Views: 3,607 #include <stdio.h>
#include <conio.h>
#include <alloc.h>
#include<process.h>
int main(void)
{
FILE *fp;
int n,r,c; |
Forum: C Dec 8th, 2004 |
| Replies: 13 Views: 3,607 i am using Turbo C 3.0, when you say another compiler, what do you mean,
can you name some good free downloadable ones.. |
Forum: C Dec 7th, 2004 |
| Replies: 13 Views: 3,607 hi,
is there no procedure wherein you can allocate memory by malloc etc..
my whole code is in TorboC and i cant change it to another compiler.(atleast now)..
thanks........ |
Forum: C Dec 5th, 2004 |
| Replies: 13 Views: 3,607 hi,
in turbo C the maximum array size i am able to specify is array[250][250]..
what should i do to enlarge this size to say..array[512][512]..
i dont know a thing about memory allocation,
so... |
Forum: C Nov 24th, 2004 |
| Replies: 8 Views: 16,078 i tried this code for rotating,
but for r1 and c1, i am getting negative values..
and the rotation is also not proper..
------------------------------------
for(i=0;i<100;i++)
{... |
Forum: C Nov 22nd, 2004 |
| Replies: 8 Views: 16,078 hi,
i have to rotate an image. the image is stored in an image[rows][cols] array..
i am trying to rotate it using trignometric functions.
i am not sure what happens when i rotate the image,
does... |
Forum: C Nov 18th, 2004 |
| Replies: 20 Views: 16,477 i guess that the .dat file does not have a file header, and the info is stored as data bits, and can be represented in an 2d array.
now moving a little further, how to rotate this image in an array.... |
Forum: C Nov 17th, 2004 |
| Replies: 20 Views: 16,477 next time i cut a chunk of code from a bigger program i will remember narue, and modify it b4 submitting it.
anyways i thought it is enough to get the message through than the aesthetic appeal of... |
Forum: C Nov 16th, 2004 |
| Replies: 20 Views: 16,477 hi narue,
nice try..but i still think that you suck.. never mind..
the reason i posted that code with all the flaws and pitfalls as you have described it, is because i was also finding the same... |
Forum: C Nov 10th, 2004 |
| Replies: 20 Views: 16,477 well well well guys, what all this???
hi narue..
i am a newbie and if i am not ignorant i might as well be a great genius like you and not an 'ignorant newbie'..
and what was the other thing u... |
Forum: C Nov 8th, 2004 |
| Replies: 20 Views: 16,477 for starters u can get the image (100x100 pixels) in this way..
then alter the value of each pixel to change the image..
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include... |
Forum: C Nov 8th, 2004 |
| Replies: 1 Views: 1,160 hi,
i am writing an image into an array.
well i want to know the difference of having this command 'fprintf(fp1,"\n");'
in the following code..
fp1=fopen("f16.raw","w");
... |
Forum: C Nov 5th, 2004 |
| Replies: 15 Views: 11,028 well i guess turbo C can accept a max array size of [250][250]..
above that it gives an error..
but for starters i took unsighned char image[250][250]
now i have to change this gray scale image... |
Forum: C Nov 4th, 2004 |
| Replies: 15 Views: 11,028 i have an 256x256 grayscale image in .dat format.
i am reading the file in turbo C in an 2d char array and comparing with another similar picture to check if they are the same..
and i am doing some... |
Forum: C Nov 3rd, 2004 |
| Replies: 15 Views: 11,028 yes vegaseat, char stores 1byte.
but with 128 characters, how will it represent 256 levels????
or am i overlooking a simple fact..i dono... |
Forum: C Nov 2nd, 2004 |
| Replies: 15 Views: 11,028 sounds kinda simple, but i am a C novice, so looks very complicated for my understanding.
if some example codes are there, it will help me understand it.
please..anybody......
if i am asking... |
Forum: C Nov 2nd, 2004 |
| Replies: 15 Views: 11,028 thanks a lot vegaseat..
ur code is working great..
i am actually reading a gray scale image, which has 0-255 levels of gray intensities.
so each pixel in the image or each character represents a... |
Forum: C Oct 28th, 2004 |
| Replies: 15 Views: 11,028 hi,
i have to do image read and write in Turbo C.
i am very new to C.
so please help me out as to how to do these operations and provide some sample code if you have any..
i have a vague idea... |