Search:

Type: Posts; User: kkmoslehpour

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Haha sorry, i am trying, good afternoon btw :D ...

    Haha sorry, i am trying, good afternoon btw :D

    When we flip arrays we reverse the x values of the pixels?


    This is what i am getting at, but i dont know how to code in in R,G,B values... does...
  2. How to flipping an image horizontally....

    Can someone enlighten me on how to flip an image horizontally?

    1.3.5 Flip Image Horizontally
    To flip an image horizontally, the intensity values in horizontal direction should be reversed. The...
  3. So does this look right? Im suspecting if i use...

    So does this look right? Im suspecting if i use the same variable "int tmp" for both would that cause any issues? Or do i even need "int tmp" for the second one?

    /* change color image to black and...
  4. But im saying does the height and width become a...

    But im saying does the height and width become a different variable or does RGB change
    for example, R[x][y] = R[i][j] ? and instructor said something about assigning it to a temp (tmp) I dont know...
  5. Here is a question.. R[x][y] = 255 - R[x][y];...

    Here is a question..

    R[x][y] = 255 - R[x][y];
    G[x][y] = 255 - G[x][y];
    B[x][y] = 255 - B[x][y];

    Don't i have to set a new set a variable on the left side? because this becomes a new picture...
  6. How about converting to Negative? 1.3.4 Make...

    How about converting to Negative?

    1.3.4 Make a negative of an image
    A negative image is an image in which all the intensity values have been inverted. To achieve this, each
    intensity value at a...
  7. im pretty new to this so im not sure how to run...

    im pretty new to this so im not sure how to run that...
  8. I dont get it. I need to access this file...

    I dont get it. I need to access this file remotely, and this file for sure exist, because it loads. I don't know why I am getting this output when i save it. help me out here :(


    1: Load a PPM...
  9. I updated my question now does it make more...

    I updated my question now does it make more sense? btw thanks quzah for all your help, i suck at this :(
  10. How to convert existing image to black and white?

    Hello, I am working on my function to convert to black and white. I was wondering how to start this?
    I know that when a image is black and white it has the same R,G,B values. So in a colored image...
  11. here is my save image function (case 2), it...

    here is my save image function (case 2), it builds successfully, but i get a message in the output saying that it cannot find the path specified


    Is this right?


    My code:

    int main(void)
    {
  12. thanks again! ill be coming with more questions!...

    thanks again! ill be coming with more questions! :D
  13. I have an int main () when i do void main ()...

    I have an int main ()
    when i do void main () what should i write in the main function to start the program
  14. Everything is solved but now im getting this......

    Everything is solved but now im getting this... unresolved path? Does this mean it can't located the file to load?



    Error 1 error LNK2019: unresolved external symbol _WinMain@16 referenced in...
  15. Thanks so much !! :D

    Thanks so much !! :D
  16. So i am getting red underlines for my width...

    So i am getting red underlines for my width height fname.. etc but it is defined on top... i dont get it..


    int ReadImage(char fname[SLEN], unsigned char R[WIDTH][HEIGHT], unsigned char...
  17. okay, thanks, i fix the do while loop problem....

    okay, thanks, i fix the do while loop problem. But why am i getting these other errors, it is saying i didn't define my variable (error message 8~17), and all the other variables when it is defined....
  18. I know i can read it, the only problem is I dont...

    I know i can read it, the only problem is I dont know what to change to fix the problem, since my code is so long..... Im afraid if i change something something else would go wrong...
  19. Im getting all these errors =[ Error 4 error...

    Im getting all these errors =[

    Error 4 error C2062: type 'int' unexpected c:\users\kmoslehp\documents\visual studio 2010\projects\asdfsfsf\asdfsfsf\hw2.cpp 97
    Error 5 error C2143: syntax error :...
  20. never mind i think this is how i do it? okay...

    never mind i think this is how i do it?

    okay so i have this in my main so far, how does it look?


    also i am not used to compiling it in little sections.. i usually code the whole thing then...
  21. okay im kind of getting this little by little.......

    okay im kind of getting this little by little.... thanks for being patient :D

    Here is the question:

    Are my imageR, imageG, imageB considered as a char? or int? because when i declare it as a...
  22. sorry i didnt give you the complete code all the...

    sorry i didnt give you the complete code all the file names are already defined. Here is all the complete code...

    can you check if my case 1 is correct?



    #include <stdio.h>
    #include...
  23. Like this? but then Sailing becomes unidentified...

    Like this?
    but then Sailing becomes unidentified then...


    switch(choice)
    {
    case 1:
    printf("Please input the file name to load: \n");
    scanf("%s",name);
    if(fileName==sailing)
  24. What do i put in the bold? int main(void) {...

    What do i put in the bold?


    int main(void)
    {
    int c;
    char name;

    do
    {
  25. This is my readImage function: (which is given) ...

    This is my readImage function: (which is given)

    I just need to know how to call it in my switch function, so when the user types in "Sailing" it loads the Picture from the file.


    /*Three...
Results 1 to 25 of 32
Page 1 of 2 1 2