IFKP image slant

* correct bug in slant correction code
pull/4/head
David Freese 2015-09-15 09:48:57 -05:00
rodzic f472a17646
commit ea189427d4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -81,7 +81,7 @@ void ifkp_correct_video()
for (int col = 0; col < W; col++) {
colptr = ifkp::IMAGEspp*col;
for (int rgb = 0; rgb < 3; rgb++) {
index = ratio*(rowptr + colptr + 10*W*rgb);
index = ratio*(rowptr + colptr + ifkp::IMAGEspp*W*rgb);
index += RAWSTART - ifkp::IMAGEspp*ifkp_pixelptr;
if (index < 2) index = 2;
if (index > RAWSIZE - 2) index = RAWSIZE - 2;