on the button as usual mitakeet ;)
Type: Posts; User: Giant
on the button as usual mitakeet ;)
garrr -please delete this post mr admin
googleforit.com ;) hehe, only joking have alook at this page, its where I first went at first, though I now use reference books as I find them to be alot more help.
...
i have shortened the code to isolate the problem to this:
// OneChannelWin32.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include "stdio.h"
#include...
yes thats what i want to do and I have no warnings at all, just the error line
Giant.
When I take out the casts the compiler fails on all three counts saying ''cannot convert from void* to...
define 'all those casts' ?
erm...:( no sorry, can you take out the large stick of education and hit me with it please
from what I think you are saying I should pass
vGetPixelValueIntoArray(ppfImageData[nCountI],...
Hi,
simply put the following code generates the error
error C2664: 'vGetPixelValueIntoArray' : cannot convert parameter 1 from 'float **__w64 ' to 'float *'
int main(int argc, char...
Hi chums, I am trying to turn a matlab script into C, and have a problem with one line:
X = A\b
Where A is a matrix that m~=n and b is a column matrix of proportions m,1.
The full script I...
just a quick update, slotted your program into my existing code, and it showed me where I was going wrong (especially with allocating memory) and even showed me where I was getting memory leaks which...
i have to go now :( meeting the parents for dinner :), but i will work on this tomorrow, thanks for all your help (AGAIN!)
this is where the fact that i dont know either C or C++ well (certainly C better than C++) at all comes out :(. And I thought I was using C enough to warrent posting on this board, though i could be...
ha, got it working, cheers for the help, definatly pointed me in the right direction ;)
erm sort of , you do give me a clearer indication of what I need to do, though i am still pretty lost :(, below is a simplified version of my code as it stands (most of the validation and header...
Right...here's an interesting question (i hope ;) ).
I believe what is happen in the program you made, is that you are making a pointer to an array then saving all the relevant pixel information...
:D I do not know how to thank you enough....i have been working on this problem for 3 straight days and now (thanks to your good self) it is working a treat :) thanks again
Matt.
p.s. its my...
yeah depending on what is set up in the header portion of the file, if it is in 'p3' format then it is ASCII but if it is in p6 format then its in simple byte format.
i will have alook at...
i can deal with the whitespace layout (in fact my full program ignores it completely) and 'headerend' (in the full program) is generated by counting how much whitespace+header+comment the program ahs...
my good friend and soon to be flatmate has come through for me once again and the file is hosted (it its original format) here : http://adrock.ath.cx/img0061.ppm
thanks again for the help,
Matt.
i already tried the zip (the file is originally 1Mb) i dont have hosting but asking a mate now, could i not email it to you ?
it wont let me upload it as it isnt a recognised filetype, and when i change the name it limits everything to 193.0 kb and this is 760 :S
I havent seen that webapge before tbh, i am on student placement right now from university, and my boss wants me to do things with .ppm files, but before i can manipulate them I need to be able to...
Nothing much just the includes (you can see them below as i hav streamlined some more to make it as simple as possible, though i still cant see where i am going wrong :( )
#include <iostream>...
struct filenamestruct{
char basename[128];
char basefolder[128];
char basenumber[128];
char nextFileName[256];
size_t maximagenumber;
size_t originalbasenumber;
};
struct...
Well that didnt take long to shorten as i thought it would ;)....
anyway here is the code, still giving me the same error :(
#include "practice.h"
/*
Expect a series of images of the...