reset password
Author Message
cbort
Posts: 95
Posted 19:39 May 30, 2011 |


Its really hard to see the difference on here if you wanna see the difference I linked so you can download em...

2-A
2-B
kknaur
Posts: 540
Posted 21:26 May 30, 2011 |

Part 2 using Walk Image 60 as input

Attachments:
yogesh
Posts: 24
Posted 21:46 May 30, 2011 |

output50.ppm A    target 50 and ref image is 48

2.b

60.ppm I got same image output 1 and output2.

but  for   50.ppm I got different both image   I did not know what problem in my program

Can you explain me .

if possible then upload image for 50.ppm please.

 

kknaur
Posts: 540
Posted 21:48 May 30, 2011 |

Your method probably doesnt see the block where the person's leg is as moving, its ok since if its not moving in that block its not moving.

yogesh
Posts: 24
Posted 22:04 May 30, 2011 |

this  my block for image 50.ppm

 

block 1 (0,0)
 block 2 (0,0)
 block 3 (0,0)
 block 4 (0,0)
 block 5 (0,0)
 block 6 (0,0)
 block 7 (0,0)
 block 8 (0,0)
 block 9 (0,0)
 block 10 (0,0)
 block 11 (0,0)
 block 12 (0,0)
 block 13 (0,0)
 block 14 (0,0)
 block 15 (0,0)
 block 16 (0,0)
 block 17 (0,0)
 block 18 (0,0)
 block 19 (0,0)
 block 20 (0,0)
 block 21 (0,0)
 block 22 (0,0)
 block 23 (0,1)
 block 24 (0,0)
 block 25 (0,0)
 block 26 (0,0)
 block 27 (0,0)
 block 28 (0,0)
 block 29 (0,0)
 block 30 (0,0)
 block 31 (0,0)
 block 32 (0,0)
 block 33 (0,0)
 block 34 (0,0)
 block 35 (0,0)
 block 36 (0,0)
 block 37 (0,0)
 block 38 (0,0)
 block 39 (0,0)
 block 40 (0,0)
 block 41 (0,0)
 block 42 (0,0)
 block 43 (0,0)
 block 44 (0,0)
 block 45 (0,0)
 block 46 (0,0)
 block 47 (0,0)
 block 48 (0,0)
 block 49 (0,0)
 block 50 (0,0)
 block 51 (0,0)
 block 52 (0,0)
 block 53 (0,0)
 block 54 (0,0)
 block 55 (0,0)
 block 56 (0,0)
 block 57 (0,0)
 block 58 (0,0)
 block 59 (0,0)
 block 60 (0,1)
 block 61 (0,0)
 block 62 (0,0)
 block 63 (0,0)
 block 64 (0,0)
 block 65 (0,0)
 block 66 (0,0)
 block 67 (0,0)
 block 68 (0,0)
 block 69 (0,0)
 block 70 (0,0)
 block 71 (0,0)
 block 72 (0,0)
 block 73 (0,0)
 block 74 (0,0)
 block 75 (0,0)
 block 76 (0,0)
 block 77 (0,0)
 block 78 (0,0)
 block 79 (0,-2)
 block 80 (-1,-3)
 block 81 (0,0)
 block 82 (0,0)
 block 83 (0,0)
 block 84 (0,0)
 block 85 (0,0)
 block 86 (0,0)
 block 87 (0,0)
 block 88 (0,0)
 block 89 (0,0)
 block 90 (0,0)
 block 91 (0,-2)
 block 92 (0,0)
 block 93 (0,0)
 block 94 (0,0)
 block 95 (0,0)
 block 96 (0,0)
 block 97 (0,0)
 block 98 (0,0)
 block 99 (0,0)
 block 100 (0,0)
 block 101 (0,0)
 block 102 (0,0)
 block 103 (0,0)
 block 104 (0,0)
 block 105 (0,0)
 block 106 (0,0)
 block 107 (0,0)
 block 108 (0,0)

 

 I change which block have no value zero for next block

but I confused  about how to  select static block  from 50ppm

intregrisist
Posts: 41
Posted 22:24 May 30, 2011 |

Part 2 using Walk Image 60 as input. I will work on the extra credit tomorrow.

Attachments:
intregrisist
Posts: 41
Posted 22:30 May 30, 2011 |

@yogesh

For each dynamic block, you can iterate through all the static blocks and calculate their distance using the following formula:

distance = sqrt( ((Dynamic Block Row - Static Block Row)^2 ) - Static Block Row)^2 ) +(Dynamic Block Col - Static Block Col)^2 ) )


You check all the static blocks and find the one that has the smallest distance.  That there will be your static block that you will use.


FYI Dynamic Block Row = the row of the top-left pixel of the block.  I did top-left, but it may be different for you, depending on how you did it.

Last edited by intregrisist at 22:34 May 30, 2011.
yogesh
Posts: 24
Posted 22:49 May 30, 2011 |

can you upload you 50.ppm output 1 and out put2 plz

cbort
Posts: 95
Posted 23:35 May 30, 2011 |

2A for n = 50

2B for n = 50

Attachments:
cbort
Posts: 95
Posted 23:36 May 30, 2011 |

# Target Image name: IDB1\Walk_050.ppm
# Reference Image name: IDB1\Walk_048.ppm
Number of target macro blocks: 12 x 9(image size is 192 x 144)

[   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0]
[   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    1] [   0,    0]
[   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0]
[   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0]
[   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    1]
[   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0]
[   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,   -2] [  -1,   -3] [   0,    0] [   0,    0] [   0,    0] [   0,    0]
[   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,   -2] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0]
[   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0] [   0,    0]

 

I think thats the same... but Im too lazy to count, may want to set it to print in grid format rather than a list...
 

Last edited by cbort at 23:37 May 30, 2011.