Skip to content

Instantly share code, notes, and snippets.

View janisozaur's full-sized avatar

Michał Janiszewski janisozaur

  • Poland
  • 10:02 (UTC +02:00)
View GitHub Profile
xRot = 360 * asin((mRightFrontPos.y() - mRightZeroPos.y()) / (rightFrontX - mRightZeroPos).length()) * M_1_PI / 2;
obraz = new QGridLayout();
QImage *img = new QImage();
img->load(fName);
if( img->load(fName)) qDebug()<<"Udalo sie zaladowac obrazek.";
//img->scaled(imgSize,Qt::IgnoreAspectRatio, Qt::FastTransformation);
//img->scaledToHeight(imgSize.height(), Qt::FastTransformation);
//img->scaledToWidth(imgSize.width(), Qt::FastTransformation);
QLabel *l = new QLabel;
obraz = new QGridLayout();
QImage *img = new QImage();
img->load(fName);
if( img->load(fName)) qDebug()<<"Udalo sie zaladowac obrazek.";
//img->scaled(imgSize,Qt::IgnoreAspectRatio, Qt::FastTransformation);
//img->scaledToHeight(imgSize.height(), Qt::FastTransformation);
//img->scaledToWidth(imgSize.width(), Qt::FastTransformation);
QLabel *l = new QLabel;
obraz = new QGridLayout();
QImage *img = new QImage();
img->load(fName);
if( img->load(fName)) qDebug()<<"Udalo sie zaladowac obrazek.";
//img->scaled(imgSize,Qt::IgnoreAspectRatio, Qt::FastTransformation);
//img->scaledToHeight(imgSize.height(), Qt::FastTransformation);
//img->scaledToWidth(imgSize.width(), Qt::FastTransformation);
QLabel *l = new QLabel;
@janisozaur
janisozaur / generator.cpp
Created March 27, 2011 16:32
generator.cpp
#include <stdlib.h>
#include <vector>
#include <string.h>
#include <stack>
#include <stdio.h>
#include <queue>
#include <time.h>
int *start;
int sx;
void Image::changeBrighten(int value)
{
// DOPISAĆ FUNKCJĘ która będzie przechowywać oryginalne parametry obrazka!!
QRgb pixel;
//na początek obsługa obrazków w skali szarości i mono (mniej niż 8 bitów)
if(QImage::Format_RGB32 > img->format())
{
QVector<QRgb> colorTab = img->colorTable();
for(int i = 0; i < colorTab.count(); i++)
malloc: Function not implemented
malloc: Invalid argument
"/home/janisozaur/Dropbox/workspace/oi/twarze/testfaces/face006.png"
time taken: 3311
"/home/janisozaur/Dropbox/workspace/oi/twarze/testfaces/face006.txt"
QImage::scaled: Image is a null image
time taken: 0
"/home/janisozaur/Dropbox/workspace/oi/twarze/testfaces/face007.png"
time taken: 3303
"/home/janisozaur/Dropbox/workspace/oi/twarze/testfaces/face007.txt"
#include <iostream>
#include <iomanip>
#include <vector>
#include <cmath>
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
using namespace std;
class Transformer
{
public:
@janisozaur
janisozaur / Cos.cpp
Created December 4, 2011 23:08
coś function
#include "Cos.h"
Cos::Cos(int _r, int _n) :
mR(_r), mN(_n)
{
}
void Cos::init(int _r, int _n)
{
mR = _r;