Example for specialized batch usage
,TemplateSpecializedBatch,glfException,glfFramebufferObject,glfTexture2D
- Author
- MIP
#include <OpenGLFramework/RenderingContext/glfPBuffer.hh>
#include <OpenGLFramework/SpecializedBatches/TemplateSpecializedBatch.hh>
#include <OpenGLFramework/Base/glfException.hh>
#include <OpenGLFramework/Base/glfFramebufferObject.hh>
#include <OpenGLFramework/Base/glfTexture2D.hh>
#include <Utils/Param.hh>
#include <Utils/IOUtils.hh>
#include <Base/Image/ImageIO.hh>
#include <Base/Image/Image.hh>
#include <Image/Camera.hh>
#include <Gui/biasgl.h>
using namespace std;
using namespace BIAS;
int main(int argc, char* argv[])
{
"filename of a BIAS readable unsigned char image", "");
"name of the output permutated mip image", "");
if(!IOUtils::ParseCommandLineEvalHelp(params, argc, argv) )
return 0;
if(!IOUtils::LoadCamera(camName, cam)) {
return -1;
}
try {
resultTexture.
Allocate(width, height, GL_RGB);
tsb.
Init(TemplateSpecializedBatch::myProcessingScheme);
IOUtils::SaveCamera(*outName, resultImg);
return -1;
}
}