Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/view_map/SteerableViewMap.cpp
| Show First 20 Lines • Show All 278 Lines • ▼ Show 20 Lines | for (int j = 0; j < _imagesPyramids[i]->getNumberOfLevels(); ++j) { // soc | ||||
| pix[0] = pix[1] = pix[2] = c; | pix[0] = pix[1] = pix[2] = c; | ||||
| } | } | ||||
| } | } | ||||
| // soc qtmp.save(base+QString::number(i)+"-"+QString::number(j)+".png", "PNG"); | // soc qtmp.save(base+QString::number(i)+"-"+QString::number(j)+".png", "PNG"); | ||||
| filename << base; | filename << base; | ||||
| filename << i << "-" << j << ".png"; | filename << i << "-" << j << ".png"; | ||||
| ibuf->ftype = IMB_FTYPE_PNG; | ibuf->ftype = IMB_FTYPE_PNG; | ||||
| IMB_saveiff(ibuf, const_cast<char *>(filename.str().c_str()), 0); | IMB_saveiff(ibuf, const_cast<char *>(filename.str().c_str()), static_cast<eImBufFlags>(0)); | ||||
| } | } | ||||
| #if 0 | #if 0 | ||||
| QString base("SteerableViewMap"); | QString base("SteerableViewMap"); | ||||
| for (unsigned j = 0; j < _imagesPyramids[i]->getNumberOfLevels(); ++j) { | for (unsigned j = 0; j < _imagesPyramids[i]->getNumberOfLevels(); ++j) { | ||||
| GrayImage *img = _imagesPyramids[i]->getLevel(j); | GrayImage *img = _imagesPyramids[i]->getLevel(j); | ||||
| int ow = img->width(); | int ow = img->width(); | ||||
| int oh = img->height(); | int oh = img->height(); | ||||
| float coeff = 1.0f; // 100 * 255; // * pow(2, j); | float coeff = 1.0f; // 100 * 255; // * pow(2, j); | ||||
| Show All 18 Lines | |||||