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
public class Element implements Comparable<Element>{ | |
String val; | |
int count; | |
String code = null; | |
Element leftChild; | |
Element rightChild; | |
public Element(String v, int c){ | |
this.val = v; | |
this.count = c; |
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
val(:,:,1) = | |
Columns 1 through 8 | |
0.8428 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 0 0 |
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
function [Centroid, Area, Eccentricity, Perimeter, shape_histogram] = DAC(imgname) | |
%% Basic Processing | |
I = imgname; | |
I = rgb2gray(I); | |
threshold = graythresh(I); | |
BW = im2bw(I, threshold); | |
BW = ~BW; |
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
clc; | |
clear all; | |
Hist1 = getHSVHistogram('C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Winter.jpg'); | |
Hist2 = getHSVHistogram('C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg'); | |
% decision thresholds: | |
t = 0.010; | |
t2 = 0.8; |
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
function [Similarity] = HSVcomp(Hist1, Hist2) | |
range = 0.0:0.1:1.0; | |
rangeNew = 0.0:0.05:1.0; | |
[x,y,z] = meshgrid(range); | |
[x2,y2,z2] = meshgrid(rangeNew); | |
% decision thresholds: | |
t = 0.010; | |
t2 = 0.8; |
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
function [Similarity] = HSVcomp(Hist1, Hist2) | |
range = 0.0:0.1:1.0; | |
rangeNew = 0.0:0.05:1.0; | |
[x,y,z] = meshgrid(range); | |
[x2,y2,z2] = meshgrid(rangeNew); | |
% decision thresholds: | |
t = 0.010; | |
t2 = 0.8; |
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
CREATE TYPE Texture AS OBJECT( | |
entropy NUMBER(10,10), | |
energy NUMBER(10,10), | |
inertia NUMBER(10,10), | |
inverseDiffMoment NUMBER(10,10), | |
correlation NUMBER(10,10), | |
infoCorrelation1 NUMBER(10,10), | |
infoCorrelation2 NUMBER(10,10), | |
sumAvg NUMBER(10,10), | |
sumVar NUMBER(10,10), |
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
Create table employee ( | |
id Number, | |
name Varchar(20), | |
Primary Key(id) | |
) |
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
function F = getTexture(image) | |
output_bits=1; | |
input_bits=8; | |
theta=45; | |
d=205; | |
% getting the size of the input image |
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
import java.io.File; | |
import javax.swing.JFileChooser; | |
import javax.swing.JPanel; | |
public class TestFileChooser extends JPanel { | |
public static void main(String... args){ | |
TestFileChooser tf = new TestFileChooser(); | |
tf.showMe(); | |
// jf.showOpenDialog(TestFileChooser.this); |
OlderNewer