Skip to content

Commit

Permalink
Fix image2plate to actually provide float32
Browse files Browse the repository at this point in the history
If the user request float32, give them float32. Don't stiff 'em with int16.
  • Loading branch information
Zack Moratto committed Apr 22, 2010
1 parent bf5eb87 commit 98ccbfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vw/Plate/image2plate.cc
Expand Up @@ -280,11 +280,11 @@ int main( int argc, char *argv[] ) {
case VW_CHANNEL_FLOAT32:
if (has_nodata_value) {
do_mosaic(platefile,
mask_to_alpha(channel_cast<int16>(create_mask(DiskImageView<PixelGray<float32> >(image_files[i]),
nodata_value))),
mask_to_alpha(create_mask(DiskImageView<PixelGray<float32> >(image_files[i]),
nodata_value)),
image_files[i], transaction_id_override, georef, output_mode);
} else
do_mosaic(platefile, DiskImageView<PixelGrayA<int16> >(image_files[i]),
do_mosaic(platefile, DiskImageView<PixelGrayA<float32> >(image_files[i]),
image_files[i], transaction_id_override, georef, output_mode);
break;
default:
Expand Down

0 comments on commit 98ccbfc

Please sign in to comment.