本文整理汇总了C++中FloatImage::write_pgm方法的典型用法代码示例。如果您正苦于以下问题:C++ FloatImage::write_pgm方法的具体用法?C++ FloatImage::write_pgm怎么用?C++ FloatImage::write_pgm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FloatImage
的用法示例。
在下文中一共展示了FloatImage::write_pgm方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: write_pgm
void Bundle::write_pgm(char *filename, int xsize, int ysize)
{
Lowpass *low = new Lowpass (xsize, ysize, 2.0, 0.6);
for (int i = 0; i < num_lines; i++) {
Streamline *st = lines[i];
for (int j = 0; j < st->samples - 1; j++) {
float taper_scale = 0.5 * (st->pts[j].intensity + st->pts[j+1].intensity);
low->filter_segment (st->xs(j), st->ys(j), st->xs(j+1), st->ys(j+1),
taper_scale);
}
}
FloatImage *image = low->get_image_ptr();
image->write_pgm (filename, 0.0, 1.1);
delete low;
}