Text Box: CSE 455 - Project 3

Color Histogram - Fun With Colors!
David Mier
CSE455 Computer Vision

 

Text Box:

 

 

 

 


















 




-- Opening Database "../database"

--  Calculating Histogram Similarties --

    Query image: ../imgs/beach/beach_1.ppm

    Spacial flag: YES

    Color Space: OPP

    Similarity Metric: INT

1: beach_1.ppm score: 1

2: crater_4.ppm score: 0.514727

3: sunset2_4.ppm score: 0.468851

4: beach_5.ppm score: 0.459681

5: boat_3.ppm score: 0.452015

6: crater_3.ppm score: 0.401442

7: boat_5.ppm score: 0.390892

8: beach_2.ppm score: 0.386452

9: sunset2_2.ppm score: 0.385329

10: sunset1_5.ppm score: 0.381292

11: boat_2.ppm score: 0.375182

12: crater_2.ppm score: 0.368675

13: sunset2_3.ppm score: 0.362061

14: stHelens_3.ppm score: 0.359528

15: crater_5.ppm score: 0.356605

16: beach_3.ppm score: 0.355755

17: beach_4.ppm score: 0.350355

18: stHelens_2.ppm score: 0.335758

19: pond_3.ppm score: 0.329561

20: crater_1.ppm score: 0.306296

21: pond_1.ppm score: 0.287292

22: boat_4.ppm score: 0.278327

23: stHelens_4.ppm score: 0.268623

24: pond_2.ppm score: 0.26791

25: stHelens_5.ppm score: 0.265592

26: stHelens_1.ppm score: 0.26459

27: boat_1.ppm score: 0.263128

28: sunset2_5.ppm score: 0.250293

29: sunset1_4.ppm score: 0.246094

30: sunset2_1.ppm score: 0.22417

31: sunset1_1.ppm score: 0.216393

32: sunset1_3.ppm score: 0.208421

33: cherry_4.ppm score: 0.202025

34: pond_4.ppm score: 0.201396

35: cherry_1.ppm score: 0.198743

36: pond_5.ppm score: 0.1864

37: sunset1_2.ppm score: 0.185726

38: cherry_3.ppm score: 0.185117

39: cherry_2.ppm score: 0.182236

40: cherry_5.ppm score: 0.165967


Example Query - beach1
C = OPP S =INT SP =YES









Example Query - beach1
C = OPP S =INT SP =NO









-- Opening Database "../database"

--  Calculating Histogram Similarties --

    Query image: ../imgs/beach/beach_1.ppm

    Spacial flag: NO

    Color Space: OPP

    Similarity Metric: INT

1: beach_1.ppm score: 1

2: crater_4.ppm score: 0.609508

3: boat_3.ppm score: 0.5968

4: sunset2_4.ppm score: 0.549095

5: boat_4.ppm score: 0.543353

6: boat_5.ppm score: 0.541676

7: sunset2_2.ppm score: 0.541133

8: beach_2.ppm score: 0.536507

9: crater_3.ppm score: 0.520459

10: pond_3.ppm score: 0.51778

11: beach_4.ppm score: 0.508135

12: beach_3.ppm score: 0.507796

13: crater_5.ppm score: 0.503141

14: sunset2_3.ppm score: 0.499147

15: pond_1.ppm score: 0.483532

16: pond_5.ppm score: 0.476149

17: crater_2.ppm score: 0.473249

18: beach_5.ppm score: 0.466471

19: pond_2.ppm score: 0.463431

20: boat_2.ppm score: 0.459632

21: stHelens_3.ppm score: 0.434554

22: sunset1_5.ppm score: 0.423994

23: pond_4.ppm score: 0.407695

24: boat_1.ppm score: 0.401383

25: sunset2_5.ppm score: 0.398184

26: crater_1.ppm score: 0.386299

27: stHelens_2.ppm score: 0.384128

28: stHelens_4.ppm score: 0.382376

29: sunset2_1.ppm score: 0.341706

30: sunset1_1.ppm score: 0.328372

31: sunset1_3.ppm score: 0.314375

32: sunset1_2.ppm score: 0.298288

33: sunset1_4.ppm score: 0.295407

34: stHelens_1.ppm score: 0.277399

35: stHelens_5.ppm score: 0.276963

36: cherry_4.ppm score: 0.276445

37: cherry_1.ppm score: 0.257673

38: cherry_2.ppm score: 0.24832

39: cherry_3.ppm score: 0.240876

40: cherry_5.ppm score: 0.191133

 

Example Query - boat_5
C = OPP S =INT SP =YES









-- Opening Database "../database"

--  Calculating Histogram Similarties --

    Query image: ../imgs/boat/boat_5.ppm

    Spacial flag: YES

    Color Space: OPP

    Similarity Metric: INT

1: boat_5.ppm score: 1

2: boat_3.ppm score: 0.863232

3: boat_4.ppm score: 0.706299

4: boat_2.ppm score: 0.57765

5: crater_4.ppm score: 0.444368

6: crater_5.ppm score: 0.414202

7: beach_1.ppm score: 0.390892

8: stHelens_5.ppm score: 0.346074

9: sunset2_4.ppm score: 0.324206

10: beach_2.ppm score: 0.321364

11: sunset1_5.ppm score: 0.306305

12: beach_5.ppm score: 0.293076

13: crater_2.ppm score: 0.269469

14: sunset1_2.ppm score: 0.267894

15: beach_3.ppm score: 0.26764

16: stHelens_1.ppm score: 0.263398

17: cherry_5.ppm score: 0.25862

18: sunset1_3.ppm score: 0.254183

19: sunset2_5.ppm score: 0.249606

20: crater_3.ppm score: 0.247262

21: stHelens_2.ppm score: 0.240723

22: crater_1.ppm score: 0.231673

23: beach_4.ppm score: 0.210964

24: pond_3.ppm score: 0.202731

25: stHelens_3.ppm score: 0.202145

26: stHelens_4.ppm score: 0.196559

27: cherry_1.ppm score: 0.196494

28: cherry_2.ppm score: 0.194967

29: sunset1_1.ppm score: 0.192331

30: pond_2.ppm score: 0.186807

31: pond_1.ppm score: 0.184326

32: sunset1_4.ppm score: 0.178327

33: boat_1.ppm score: 0.172393

34: cherry_3.ppm score: 0.164242

35: pond_5.ppm score: 0.164036

36: sunset2_2.ppm score: 0.152715

37: pond_4.ppm score: 0.135775

38: sunset2_3.ppm score: 0.127324

39: cherry_4.ppm score: 0.120501

40: sunset2_1.ppm score: 0.0971484

 

Example Query - boat5
C = OPP S =INT SP =NO









-- Opening Database "../database"

--  Calculating Histogram Similarties --

    Query image: ../imgs/boat/boat_5.ppm

    Spacial flag: NO

    Color Space: OPP

    Similarity Metric: INT

1: boat_5.ppm score: 1

2: boat_3.ppm score: 0.874476

3: boat_4.ppm score: 0.755439

4: boat_2.ppm score: 0.657181

5: beach_1.ppm score: 0.541676

6: crater_4.ppm score: 0.503161

7: beach_2.ppm score: 0.500817

8: crater_5.ppm score: 0.468132

9: beach_3.ppm score: 0.414131

10: beach_5.ppm score: 0.398285

11: stHelens_5.ppm score: 0.396497

12: sunset2_4.ppm score: 0.395098

13: sunset2_5.ppm score: 0.389417

14: crater_3.ppm score: 0.367344

15: beach_4.ppm score: 0.363975

16: pond_5.ppm score: 0.334648

17: sunset1_5.ppm score: 0.334352

18: stHelens_1.ppm score: 0.325872

19: sunset1_2.ppm score: 0.324554

20: crater_2.ppm score: 0.311667

21: sunset1_3.ppm score: 0.310706

22: crater_1.ppm score: 0.310133

23: stHelens_2.ppm score: 0.30862

24: stHelens_3.ppm score: 0.283525

25: cherry_5.ppm score: 0.283483

26: cherry_2.ppm score: 0.273805

27: pond_2.ppm score: 0.262461

28: cherry_1.ppm score: 0.260547

29: pond_1.ppm score: 0.259264

30: sunset1_4.ppm score: 0.258063

31: sunset1_1.ppm score: 0.251901

32: cherry_3.ppm score: 0.24876

33: pond_3.ppm score: 0.242965

34: sunset2_2.ppm score: 0.238844

35: stHelens_4.ppm score: 0.234593

36: boat_1.ppm score: 0.224248

37: cherry_4.ppm score: 0.214733

38: pond_4.ppm score: 0.210804

39: sunset2_3.ppm score: 0.201133

40: sunset2_1.ppm score: 0.180967

 


















 




Example Query - cherry3
C = OPP S =INT SP =YES









-- Opening Database "../database"

--  Calculating Histogram Similarties --

    Query image: ../imgs/cherry/cherry_3.ppm

    Spacial flag: YES

    Color Space: OPP

    Similarity Metric: INT

1: cherry_3.ppm score: 0.891667

2: cherry_4.ppm score: 0.756563

3: cherry_1.ppm score: 0.70221

4: cherry_2.ppm score: 0.616885

5: cherry_5.ppm score: 0.48098

6: stHelens_2.ppm score: 0.315579

7: stHelens_3.ppm score: 0.295638

8: stHelens_1.ppm score: 0.292363

9: stHelens_4.ppm score: 0.278812

10: sunset2_5.ppm score: 0.277272

11: beach_3.ppm score: 0.239749

12: stHelens_5.ppm score: 0.234443

13: beach_2.ppm score: 0.220573

14: boat_1.ppm score: 0.218945

15: crater_3.ppm score: 0.215817

16: boat_2.ppm score: 0.207048

17: sunset1_2.ppm score: 0.203057

18: beach_4.ppm score: 0.199528

19: sunset1_3.ppm score: 0.197546

20: sunset1_1.ppm score: 0.187878

21: beach_1.ppm score: 0.185117

22: boat_3.ppm score: 0.181605

23: crater_5.ppm score: 0.180023

24: sunset1_5.ppm score: 0.179795

25: crater_4.ppm score: 0.17778

26: pond_1.ppm score: 0.174134

27: sunset1_4.ppm score: 0.165443

28: boat_5.ppm score: 0.164242

29: boat_4.ppm score: 0.16166

30: pond_2.ppm score: 0.159665

31: pond_5.ppm score: 0.157266

32: pond_3.ppm score: 0.155332

33: beach_5.ppm score: 0.137285

34: sunset2_4.ppm score: 0.127653

35: sunset2_3.ppm score: 0.0955664

36: crater_1.ppm score: 0.0948568

37: crater_2.ppm score: 0.0897266

38: sunset2_2.ppm score: 0.0779883

39: pond_4.ppm score: 0.0665332

40: sunset2_1.ppm score: 0.052028

 

Example Query - cherry3
C = OPP S =INT SP =NO









-- Opening Database "../database"

--  Calculating Histogram Similarties --

    Query image: ../imgs/cherry/cherry_3.ppm

    Spacial flag: NO

    Color Space: OPP

    Similarity Metric: INT

1: cherry_3.ppm score: 0.891667

2: cherry_4.ppm score: 0.77585

3: cherry_1.ppm score: 0.766097

4: cherry_2.ppm score: 0.745153

5: cherry_5.ppm score: 0.520628

6: stHelens_1.ppm score: 0.365091

7: stHelens_2.ppm score: 0.351781

8: stHelens_3.ppm score: 0.327461

9: beach_2.ppm score: 0.317464

10: sunset2_5.ppm score: 0.314333

11: boat_2.ppm score: 0.309066

12: stHelens_4.ppm score: 0.295469

13: boat_3.ppm score: 0.288506

14: beach_3.ppm score: 0.276071

15: pond_5.ppm score: 0.275882

16: crater_3.ppm score: 0.272913

17: pond_2.ppm score: 0.267184

18: pond_1.ppm score: 0.26707

19: stHelens_5.ppm score: 0.264437

20: crater_4.ppm score: 0.257109

21: crater_5.ppm score: 0.253646

22: boat_5.ppm score: 0.24876

23: sunset1_3.ppm score: 0.244245

24: boat_4.ppm score: 0.24154

25: beach_1.ppm score: 0.240876

26: pond_4.ppm score: 0.23988

27: boat_1.ppm score: 0.239811

28: pond_3.ppm score: 0.237246

29: sunset1_1.ppm score: 0.233617

30: sunset1_2.ppm score: 0.225742

31: beach_4.ppm score: 0.220605

32: sunset1_5.ppm score: 0.192236

33: sunset1_4.ppm score: 0.188844

34: sunset2_4.ppm score: 0.181149

35: crater_2.ppm score: 0.162969

36: crater_1.ppm score: 0.152174

37: sunset2_2.ppm score: 0.148411

38: beach_5.ppm score: 0.147025

39: sunset2_3.ppm score: 0.146816

40: sunset2_1.ppm score: 0.085153

 


















 




Example Query - stHelens2
C = OPP S =INT SP =YES









-- Opening Database "../database"

--  Calculating Histogram Similarties --

    Query image: ../imgs/stHelens/stHelens_2.ppm

    Spacial flag: YES

    Color Space: OPP

    Similarity Metric: INT

1: stHelens_2.ppm score: 1

2: stHelens_3.ppm score: 0.842272

3: stHelens_4.ppm score: 0.775052

4: stHelens_1.ppm score: 0.74196

5: boat_1.ppm score: 0.625755

6: stHelens_5.ppm score: 0.55763

7: beach_3.ppm score: 0.544053

8: beach_2.ppm score: 0.483978

9: beach_4.ppm score: 0.469951

10: crater_1.ppm score: 0.376911

11: crater_3.ppm score: 0.33917

12: beach_1.ppm score: 0.335758

13: cherry_1.ppm score: 0.332301

14: cherry_3.ppm score: 0.315579

15: boat_3.ppm score: 0.304567

16: beach_5.ppm score: 0.300273

17: cherry_2.ppm score: 0.299984

18: cherry_4.ppm score: 0.296715

19: sunset1_3.ppm score: 0.273844

20: cherry_5.ppm score: 0.270352

21: crater_4.ppm score: 0.266074

22: sunset1_2.ppm score: 0.257493

23: boat_2.ppm score: 0.257201

24: sunset1_1.ppm score: 0.255732

25: crater_5.ppm score: 0.252829

26: sunset2_5.ppm score: 0.245094

27: boat_5.ppm score: 0.240723

28: boat_4.ppm score: 0.237813

29: pond_3.ppm score: 0.231631

30: pond_1.ppm score: 0.231387

31: pond_2.ppm score: 0.217321

32: crater_2.ppm score: 0.209561

33: pond_5.ppm score: 0.202513

34: sunset1_5.ppm score: 0.179346

35: sunset1_4.ppm score: 0.152552

36: sunset2_4.ppm score: 0.138516

37: sunset2_3.ppm score: 0.13068

38: sunset2_2.ppm score: 0.119681

39: pond_4.ppm score: 0.111475

40: sunset2_1.ppm score: 0.0904329

 

Example Query - stHelens2
C = OPP S =INT SP =NO









-- Opening Database "../database"

--  Calculating Histogram Similarties --

    Query image: ../imgs/stHelens/stHelens_2.ppm

    Spacial flag: NO

    Color Space: OPP

    Similarity Metric: INT

1: stHelens_2.ppm score: 1

2: stHelens_3.ppm score: 0.870238

3: stHelens_4.ppm score: 0.81498

4: stHelens_1.ppm score: 0.814297

5: boat_1.ppm score: 0.666182

6: stHelens_5.ppm score: 0.581074

7: beach_3.ppm score: 0.548092

8: beach_2.ppm score: 0.517604

9: beach_4.ppm score: 0.480443

10: crater_3.ppm score: 0.451475

11: crater_5.ppm score: 0.438636

12: crater_4.ppm score: 0.438542

13: crater_1.ppm score: 0.403135

14: boat_2.ppm score: 0.389362

15: beach_1.ppm score: 0.384128

16: cherry_4.ppm score: 0.373288

17: cherry_1.ppm score: 0.372803

18: boat_4.ppm score: 0.371995

19: pond_5.ppm score: 0.362741

20: beach_5.ppm score: 0.360387

21: cherry_2.ppm score: 0.358906

22: pond_2.ppm score: 0.35734

23: boat_3.ppm score: 0.357119

24: pond_3.ppm score: 0.353447

25: cherry_3.ppm score: 0.351781

26: pond_1.ppm score: 0.347601

27: crater_2.ppm score: 0.326579

28: sunset2_5.ppm score: 0.324036

29: sunset1_3.ppm score: 0.323822

30: sunset1_2.ppm score: 0.31167

31: pond_4.ppm score: 0.311553

32: boat_5.ppm score: 0.30862

33: sunset1_1.ppm score: 0.305954

34: sunset2_3.ppm score: 0.294202

35: cherry_5.ppm score: 0.29207

36: sunset2_2.ppm score: 0.282109

37: sunset2_4.ppm score: 0.276468

38: sunset1_5.ppm score: 0.255413

39: sunset1_4.ppm score: 0.197757

40: sunset2_1.ppm score: 0.151842

 


















 




Example Query - Sunset1_2
C = OPP S =INT SP =YES









-- Opening Database "../database"

--  Calculating Histogram Similarties --

    Query image: ../imgs/sunset1/sunset1_2.ppm

    Spacial flag: YES

    Color Space: OPP

    Similarity Metric: INT

1: sunset1_2.ppm score: 1

2: sunset1_3.ppm score: 0.931813

3: sunset1_1.ppm score: 0.84874

4: sunset2_4.ppm score: 0.531338

5: sunset1_4.ppm score: 0.519831

6: sunset2_5.ppm score: 0.428568

7: boat_2.ppm score: 0.418164

8: sunset1_5.ppm score: 0.398724

9: sunset2_3.ppm score: 0.337803

10: sunset2_2.ppm score: 0.325365

11: beach_3.ppm score: 0.321364

12: beach_4.ppm score: 0.301081

13: boat_4.ppm score: 0.275007

14: boat_3.ppm score: 0.270706

15: boat_5.ppm score: 0.267894

16: stHelens_2.ppm score: 0.257493

17: crater_5.ppm score: 0.250111

18: beach_2.ppm score: 0.248783

19: crater_4.ppm score: 0.24027

20: stHelens_3.ppm score: 0.215762

21: stHelens_1.ppm score: 0.2082

22: cherry_3.ppm score: 0.203057

23: crater_3.ppm score: 0.197087

24: cherry_1.ppm score: 0.195635

25: pond_2.ppm score: 0.189655

26: crater_2.ppm score: 0.185924

27: beach_1.ppm score: 0.185726

28: cherry_2.ppm score: 0.182337

29: cherry_4.ppm score: 0.18083

30: sunset2_1.ppm score: 0.175902

31: stHelens_5.ppm score: 0.173786

32: stHelens_4.ppm score: 0.163252

33: cherry_5.ppm score: 0.162057

34: crater_1.ppm score: 0.159411

35: beach_5.ppm score: 0.155163

36: pond_3.ppm score: 0.141266

37: boat_1.ppm score: 0.136442

38: pond_4.ppm score: 0.129092

39: pond_1.ppm score: 0.122197

40: pond_5.ppm score: 0.112656

 

Example Query - Sunset1_2
C = OPP S =INT SP =NO









-- Opening Database "../database"

--  Calculating Histogram Similarties --

    Query image: ../imgs/sunset1/sunset1_2.ppm

    Spacial flag: NO

    Color Space: OPP

    Similarity Metric: INT

1: sunset1_2.ppm score: 1

2: sunset1_3.ppm score: 0.937555

3: sunset1_1.ppm score: 0.850065

4: sunset2_4.ppm score: 0.623135

5: sunset2_5.ppm score: 0.583926

6: sunset1_4.ppm score: 0.570163

7: sunset1_5.ppm score: 0.489668

8: boat_2.ppm score: 0.469785

9: sunset2_2.ppm score: 0.40766

10: sunset2_3.ppm score: 0.404548

11: boat_4.ppm score: 0.365462

12: beach_3.ppm score: 0.36304

13: pond_4.ppm score: 0.361201

14: crater_4.ppm score: 0.355586

15: pond_2.ppm score: 0.344482

16: crater_5.ppm score: 0.336523

17: pond_3.ppm score: 0.327298

18: boat_5.ppm score: 0.324554

19: sunset2_1.ppm score: 0.323333

20: beach_4.ppm score: 0.314954

21: crater_1.ppm score: 0.314505

22: stHelens_2.ppm score: 0.31167

23: crater_3.ppm score: 0.302298

24: boat_3.ppm score: 0.301377

25: beach_5.ppm score: 0.301286

26: beach_1.ppm score: 0.298288

27: pond_1.ppm score: 0.293382

28: stHelens_1.ppm score: 0.275928

29: pond_5.ppm score: 0.274453

30: beach_2.ppm score: 0.27109

31: stHelens_3.ppm score: 0.263174

32: crater_2.ppm score: 0.257715

33: cherry_1.ppm score: 0.254434

34: stHelens_5.ppm score: 0.24651

35: boat_1.ppm score: 0.238021

36: cherry_2.ppm score: 0.234971

37: cherry_3.ppm score: 0.225742

38: stHelens_4.ppm score: 0.214245

39: cherry_4.ppm score: 0.214036

40: cherry_5.ppm score: 0.202656

 

Clean up Google Image Search

 

-- Opening Database "../google_db/"

--  Calculating Histogram Similarties --

    Query image: ../imgs/beach/beach_1.ppm

    Spacial flag: YES

    Color Space: OPP

    Similarity Metric: INT

1: img9.ppm score: 0.279811

2: img14.ppm score: 0.263708

3: img1.ppm score: 0.216214

4: img20.ppm score: 0.215426

5: img3.ppm score: 0.150371

6: img7.ppm score: 0.149492

7: img10.ppm score: 0.146764

8: img2.ppm score: 0.13972

9: img5.ppm score: 0.134408

10: img13.ppm score: 0.133278

11: img12.ppm score: 0.112913

12: img18.ppm score: 0.0927083

13: img15.ppm score: 0.0843522

14: img16.ppm score: 0.0834277

15: img4.ppm score: 0.0769954

16: img8.ppm score: 0.0741113

17: img19.ppm score: 0.0449479

18: img17.ppm score: 0.0430046

19: img11.ppm score: 0.0262077

20: img6.ppm score: 0.0180208

Analyzing Performance


 

S= Spacial

C = Color space

S = Similarity metric

      

       SP  C    s

Test 1: NO RGB SSD 

Test 2: NO OPP SSD 

Test 3: YES RGB SSD 

Test 4: YES OPP SSD 

Test 5: NO RGB INT 

Test 6: NO OPP INT 

Test 7: RGB INT NO

Test 8: YES OPP INT 

 

Test 2:  Spacial = NO  Color Space = OPP Similarity Metric = SSD appers to be the best test for all data sets.