This file contains hidden or 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
/* | |
Code developed by Team 7, B.Tech 2011, DA-IICT, India | |
for making controller for operating in arduino project on TicTacToe | |
Please feel free to download, use and share | |
Cheers !! | |
*/ | |
int j = 1; // integer used in scanning the array designating column number | |
//2-dimensional array for asigning the buttons and there high and low values |
This file contains hidden or 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 <BiColorLED.h> | |
// LEDPad.cpp | |
class LEDPad | |
{ | |
public: | |
BiColorLED leds[9]; | |
LEDPad() { | |
int j = 0; |
This file contains hidden or 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
public static Boundaries CheckBoundaries(WriteableBitmap bmp) | |
{ | |
// check left | |
double boundayFactor = 0.1; //10% of the image width/height | |
Boundaries b = new Boundaries(); | |
b.Left = CheckLeft(bmp, boundayFactor); | |
b.Right = CheckRight(bmp, boundayFactor); | |
b.Top = CheckTop(bmp, boundayFactor); | |
b.Bottom = CheckBottom(bmp, boundayFactor); | |
return b; |
This file contains hidden or 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
public Boundaries CheckBoundaries(int[] pixels) { | |
// check left | |
double boundayFactor = 0.1; //10% of the image width/height | |
Boundaries b = new Boundaries(); | |
b.Left = CheckLeft(pixels, boundayFactor); | |
b.Right = CheckRight(pixels, boundayFactor); | |
b.Top = CheckTop(pixels, boundayFactor); | |
b.Bottom = CheckBottom(pixels, boundayFactor); | |
return b; | |
} |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Navigation; | |
using Microsoft.Phone.Controls; | |
using Microsoft.Phone.Shell; | |
using System.ComponentModel; |
This file contains hidden or 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 <QCoreApplication> | |
#include <opencv.hpp> | |
#include <QDebug> | |
double compute_skew(QString filename); | |
void deskew(QString filename, double angle); | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); |
NewerOlder