Exemplo n.º 1
0
image_buf
combine( const plane &p )
{
	engine::dimensions id = p.dims();
	id.z = 1;
	id.w = 0;
	return image_buf( "i.combine_p", id, p );
}
Exemplo n.º 2
0
void Interface::loadImage(const char *image_filename)
{
	QImage image_buf(image_filename);
	if(image_buf.isNull()) {
		std::cerr << "Error: can\'t open image file" << std::endl;
		return;
	}
	QPixmap map = QPixmap::fromImage(image_buf);
	map = map.scaled(280, 280);
	image->setPixmap(QPixmap::fromImage(image_buf));
}
Exemplo n.º 3
0
image_buf
combine( const plane &p, const plane &p2, const plane &p3, const plane &p4 )
{
	// is this really a constraint? sometimes...
	// but what about 4:2:0?
	precondition( p.dims() == p2.dims() && p.dims() == p3.dims() && p.dims() == p4.dims(), "plane dimensions should match to combine to an image" );
	engine::dimensions id = p.dims();
	id.z = 4;
	id.w = 0;
	return image_buf( "i.combine_pppp", id, p, p2, p3, p4 );
}