Skip to content

Instantly share code, notes, and snippets.

View justcoding121's full-sized avatar
🏠
Working from home

Jehonathan Thomas justcoding121

🏠
Working from home
View GitHub Profile
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package aiproject;
import java.awt.Point;
import java.util.*;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package aiproject;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.io.IOException;
A1 2 B1 A2
A2 3 A1 B2 A4
A4 3 A2 B5 A5
A5 2 A4 C5
B1 3 A1 D1 B2
B2 4 C2 C3 A2 B1
B3 1 B4
B4 3 B3 B5 C4
B5 3 A4 C5 B4
C2 3 D2 B2 C3
A5 30 573
A4 30 483
A2 30 178
A1 30 48
B1 207 48
B2 207 161
B3 144 339
B4 129 443
B5 127 479
C2 258 162
;;; ----=========== General Information ===========-----
;;;
;;; Artificial Intelligence, Spring 2012
;;; Project 2 - Computer Assistant Expert System
;;; Authors: Nikolai,
;;; Titanium
;;;
;;; ----=========== System's Description ===========-----
;;;
;;; This expert system is designed to assist customers
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text.RegularExpressions
Imports System.Windows.Forms
Imports Extensibility
Imports EnvDTE
Imports EnvDTE80
Imports System.Runtime.InteropServices
/*-------------------------Grey Scaling-----------------------**/
void utility::addGrey(image& src, image& tgt, ROI roi, int value1, int value2)
{
tgt.resize(src.getNumberOfRows(), src.getNumberOfColumns());
for (int i = 0; i < src.getNumberOfRows(); i++)
for (int j = 0; j < src.getNumberOfColumns(); j++)
{
int value = roi.InROI(i, j);
//-----------------------------Gray level histogram computation ------------------------------------
void utility::ComputeHistogramGrey(image& src, image& tgt, ROI roi)
{
int histogram_1[256] = { 0 };
int histogram_2[256] = { 0 };
for (int i = 0; i < src.getNumberOfRows(); i++)
for (int j = 0; j < src.getNumberOfColumns(); j++) {
int value = roi.InROI(i, j);
if (value != -1) {
#include "utility.h"
#include "math.h"
std::string utility::intToString(int number)
{
std::stringstream ss; //create a stringstream
ss << number; //add number to the stream
return ss.str(); //return a string with the contents of the stream
}
/* ---------Compute edges and find circles using hough transform----------------*/
@justcoding121
justcoding121 / gist:4648869
Last active January 26, 2017 15:19
csim - EEE
// C++/CSIM Model of EEE - Energy Efficient Ethernet
//This program is a modification of M/M/1 queue example bundled with CSIM software
//Compiled and run using the default compiler available with MS visual studio 2010
//TRACE files used were those provided at the project-3 link in Dr. Ken Christensen's web page
// class definitions
#include "cpp.h"
#include <stdio.h>
#include <string.h>