Author | Message |
---|---|
Harshil
Posts: 18
|
Posted 16:17 Mar 20, 2012 |
I am facing the issue while reconstructing the image, when the difference between the 2 public index != 1.
for example: |
DavidGilbert
Posts: 40
|
Posted 18:36 Mar 20, 2012 |
accidentally double posted Last edited by DavidGilbert at
18:39 Mar 20, 2012.
|
DavidGilbert
Posts: 40
|
Posted 18:39 Mar 20, 2012 |
I don't see your exact problem, because I only took a quick glimpse at it. However, we had an issue with the division not coming out to be an integer, so, it was losing precision and the final results weren't coming out.
for instance, in integer division, x/y = 0, even though we know that 1/2 = 0.5 because 0.5 is less than 1. It truncates the mantissa/decimal portion and becomes 0.
So, the values you're using in the public indices may be causing a problem like that. c3 = -1/2 = -1.5
are actually c1 = 1 and c3 = -1 This is just a guess. |
aligh1979
Posts: 121
|
Posted 18:52 Mar 20, 2012 |
1. Your calculation seems wrong. Take a look at the formula more carefully . Seems u are calculating it wrong . Plus you dont divide it by something like m , u multiply by inverse of it(m^-1) mod p |