Daniel 2010-11-10 11:48:30 -08:00
rodzic 747804672f
commit eb96eb33d8
1 zmienionych plików z 13 dodań i 3 usunięć

Wyświetl plik

@ -20,15 +20,25 @@ seek(SRC, 0, 0);
print DEST $linecount;
print DEST " 128\n";
printf ("found %d features in %s\n", $linecount, $filename_image);
printf ("found %d features in %s (%d x %d)\n", $linecount, $filename_image, $res_x, $res_y);
while ($record = <SRC>) {
@parts = split(/ /, $record);
$counter = 0;
$parts[1] = $res_y-$parts[1];
print DEST shift(@parts)." ".shift(@parts)." ".shift(@parts)." ".shift(@parts);
if(@parts[3] > 3.141){
@parts[3] -= 6.282;
}
@parts[3] *= -1;
printf (DEST "%.3f %.3f %.3f %.3f", @parts[1], @parts[0], @parts[2], @parts[3]);
shift(@parts);
shift(@parts);
shift(@parts);
shift(@parts);
for ($count = 0; $count < 128; $count += 8) {
@tmp = @parts[$count+7];