Help with algorithm

Discussion in 'Programming' started by yonip, Apr 6, 2011.

  1. #1
    i see this algorithm:
    http://scien.stanford.edu/pages/labsite/2000/ee368/projects2000/project18/coloredpencil.htm

    and i dont understand what is the mask function does.
    the function need one parameter (type integer)
    but i dont understand what the function does with this parameter.
    can you help me?
     
    yonip, Apr 6, 2011 IP
  2. yonip

    yonip Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    never mind, I succeed.
     
    yonip, Apr 6, 2011 IP
  3. opx

    opx Greenhorn

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    just what it said: Mask(...)= 1/ (Max_diff(x,y)/sqrt(Orig_Value(x,y)+1)/3+1)

    where the parameter you give is the (x,y) 's 3*3 neighborhood.
     
    opx, Apr 9, 2011 IP
  4. mike30

    mike30 Well-Known Member

    Messages:
    887
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #4
    interesting algorithm, I never thought about using programing to do that kind of effect.

    Great!


    ~Mike
     
    mike30, Apr 14, 2011 IP