SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
File: /home/michel/Desktop/harris.cxx

Page 1 of 1

//Signature: HarrisDetectorFilter(MyStandardImage& Img, MyHarrisResponseMetric* metric, unsigned int ws)
// Computing luminance image
MyStandardImage ImgGrayA = RGBtoYUVLuminance(Img);
// Computing sobel gradients for the images
MyStandardImage ImgGraySobelX = SobelX(ImgGrayA);
MyStandardImage ImgGraySobelY = SobelY(ImgGrayA);
// Computing derivatives
MyStandardImage ImgAx2 =
MyStandardImage ImgAy2 =
MyStandardImage ImgAxy =

products for images
ImgGraySobelX*ImgGraySobelX; // Ix2
ImgGraySobelY*ImgGraySobelY; // Iy2
ImgGraySobelX*ImgGraySobelY; // Ixy

// Computing blurred images
ImgAx2 = GaussianBlur(ImgAx2, ws);
ImgAy2 = GaussianBlur(ImgAy2, ws);
ImgAxy = GaussianBlur(ImgAxy, ws);
// Computing response R for each image pixel.
unsigned int _rows = Img.rows();
unsigned int _cols = Img.cols();
MyStandardImage TmpImg = MyStandardImage(_rows, _cols);
for (unsigned int i = 0; i < _rows; i++)
{
for(unsigned int j = 0; j < _cols; j++)
{
// Computing the trace and determinante of the matrix
double determinant = ImgAx2(i,j).r()*ImgAy2(i,j).r() - ImgAxy(i, j).r()*ImgAxy(i, j).r();
double trace
= ImgAx2(i,j).r() + ImgAy2(i,j).r();
// Calculating the response Harris R
double R = metric->operator()(determinant, trace);
TmpImg(i, j) = MyStandardPixel(R, R, R);
}
}
// Returning resultant not normalized image
return TmpImg;

Más contenido relacionado

Más de Michel Alves

Harris Detector Results
Harris Detector ResultsHarris Detector Results
Harris Detector Results
Michel Alves
 

Más de Michel Alves (20)

Color Harmonization - Results
Color Harmonization - ResultsColor Harmonization - Results
Color Harmonization - Results
 
Wave Simulation Using Perlin Noise
Wave Simulation Using Perlin NoiseWave Simulation Using Perlin Noise
Wave Simulation Using Perlin Noise
 
Similarity Maps Using SSIM Index
Similarity Maps Using SSIM IndexSimilarity Maps Using SSIM Index
Similarity Maps Using SSIM Index
 
Qualifying Exam - Image-Based Reconstruction With Color Harmonization
Qualifying Exam - Image-Based Reconstruction With Color HarmonizationQualifying Exam - Image-Based Reconstruction With Color Harmonization
Qualifying Exam - Image-Based Reconstruction With Color Harmonization
 
TMS - Schedule of Presentations and Reports
TMS - Schedule of Presentations and ReportsTMS - Schedule of Presentations and Reports
TMS - Schedule of Presentations and Reports
 
Month Presentations Schedule - March/2015 - LCG/UFRJ
Month Presentations Schedule - March/2015 - LCG/UFRJMonth Presentations Schedule - March/2015 - LCG/UFRJ
Month Presentations Schedule - March/2015 - LCG/UFRJ
 
Color Palettes in R
Color Palettes in RColor Palettes in R
Color Palettes in R
 
Sigmoid Curve Erf
Sigmoid Curve ErfSigmoid Curve Erf
Sigmoid Curve Erf
 
Hue Wheel Prototype
Hue Wheel PrototypeHue Wheel Prototype
Hue Wheel Prototype
 
Cosine Curve
Cosine CurveCosine Curve
Cosine Curve
 
Triangle Mesh Plot
Triangle Mesh PlotTriangle Mesh Plot
Triangle Mesh Plot
 
Triangle Plot
Triangle PlotTriangle Plot
Triangle Plot
 
Capacity-Constrained Point Distributions :: Video Slides
Capacity-Constrained Point Distributions :: Video SlidesCapacity-Constrained Point Distributions :: Video Slides
Capacity-Constrained Point Distributions :: Video Slides
 
Capacity-Constrained Point Distributions :: Density Function Catalog
Capacity-Constrained Point Distributions :: Density Function CatalogCapacity-Constrained Point Distributions :: Density Function Catalog
Capacity-Constrained Point Distributions :: Density Function Catalog
 
Capacity-Constrained Point Distributions :: Complementary Results
Capacity-Constrained Point Distributions :: Complementary ResultsCapacity-Constrained Point Distributions :: Complementary Results
Capacity-Constrained Point Distributions :: Complementary Results
 
Capacity-Constrained Point Distributions
Capacity-Constrained Point DistributionsCapacity-Constrained Point Distributions
Capacity-Constrained Point Distributions
 
Five Minute Speech: An Overview of Activities Developed in Disciplines and Gu...
Five Minute Speech: An Overview of Activities Developed in Disciplines and Gu...Five Minute Speech: An Overview of Activities Developed in Disciplines and Gu...
Five Minute Speech: An Overview of Activities Developed in Disciplines and Gu...
 
Harris Detector Results
Harris Detector ResultsHarris Detector Results
Harris Detector Results
 
Class Diagram - MyImageLibrary
Class Diagram - MyImageLibraryClass Diagram - MyImageLibrary
Class Diagram - MyImageLibrary
 
Diagrams - entity-relationship and relational model
Diagrams - entity-relationship and relational modelDiagrams - entity-relationship and relational model
Diagrams - entity-relationship and relational model
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

Harris Detector Algorithm

  • 1. File: /home/michel/Desktop/harris.cxx Page 1 of 1 //Signature: HarrisDetectorFilter(MyStandardImage& Img, MyHarrisResponseMetric* metric, unsigned int ws) // Computing luminance image MyStandardImage ImgGrayA = RGBtoYUVLuminance(Img); // Computing sobel gradients for the images MyStandardImage ImgGraySobelX = SobelX(ImgGrayA); MyStandardImage ImgGraySobelY = SobelY(ImgGrayA); // Computing derivatives MyStandardImage ImgAx2 = MyStandardImage ImgAy2 = MyStandardImage ImgAxy = products for images ImgGraySobelX*ImgGraySobelX; // Ix2 ImgGraySobelY*ImgGraySobelY; // Iy2 ImgGraySobelX*ImgGraySobelY; // Ixy // Computing blurred images ImgAx2 = GaussianBlur(ImgAx2, ws); ImgAy2 = GaussianBlur(ImgAy2, ws); ImgAxy = GaussianBlur(ImgAxy, ws); // Computing response R for each image pixel. unsigned int _rows = Img.rows(); unsigned int _cols = Img.cols(); MyStandardImage TmpImg = MyStandardImage(_rows, _cols); for (unsigned int i = 0; i < _rows; i++) { for(unsigned int j = 0; j < _cols; j++) { // Computing the trace and determinante of the matrix double determinant = ImgAx2(i,j).r()*ImgAy2(i,j).r() - ImgAxy(i, j).r()*ImgAxy(i, j).r(); double trace = ImgAx2(i,j).r() + ImgAy2(i,j).r(); // Calculating the response Harris R double R = metric->operator()(determinant, trace); TmpImg(i, j) = MyStandardPixel(R, R, R); } } // Returning resultant not normalized image return TmpImg;