This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xRot = 360 * asin((mRightFrontPos.y() - mRightZeroPos.y()) / (rightFrontX - mRightZeroPos).length()) * M_1_PI / 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <vector> | |
#include <string.h> | |
#include <stack> | |
#include <stdio.h> | |
#include <queue> | |
#include <time.h> | |
int *start; | |
int sx; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <iomanip> | |
#include <vector> | |
#include <cmath> | |
#include <fstream> | |
using namespace std; | |
int main(int argc, char *argv[]) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <cassert> | |
using namespace std; | |
class Transformer | |
{ | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Cos.h" | |
Cos::Cos(int _r, int _n) : | |
mR(_r), mN(_n) | |
{ | |
} | |
void Cos::init(int _r, int _n) | |
{ | |
mR = _r; |
OlderNewer