1D Histogram with OpenCV C++ (update – opencv 2.3.1)

This post is an update of an old one  This time I’m using opencv 2.3.1 to obtain the histogram.

Files:
histogram.cpp
histogram.h

Posted on February 18, 2012 at 11:38 pm by Isaias · Permalink · Leave a comment
In: Software

Dropping a Default constraint of a column in sql

I have had some troubles to delete a column in Sql ’cause this column had a default value defined.

The solution I found is this:

getting the name of the contraint with the following query:

select name from sys.default_constraints where parent_column_id=(select column_id from sys.all_columns where column_id=(select column_id from sys.columns where object_id=(select object_id from sys.tables where name='TABLE_NAME') and name='COLUMN_NAME') and object_id=(select object_id from sys.tables where name='TABLE_NAME'))

and then, deleting the constraint

ALTER TABLE TABLE_NAME
DROP CONSTRAINT CONSTRAINT_NAME

Posted on September 21, 2011 at 12:49 pm by Isaias · Permalink · Leave a comment
In: Software · Tagged with: 

Smother

The new wild beasts’ album is delicious

Streaming in guardian

 

Wild Beasts, la garage session from Télérama on Vimeo.

Posted on May 7, 2011 at 3:57 pm by Isaias · Permalink · Leave a comment
In: Music

OpenCV-2.2.0 Visual C++ 2010

The process is slighty different from the one described here OpenCV-2.1.0 Visual C++ 2010 on Windows 7

1. Create a new Win32 Console Application project
2. Change the project’s Property Pages > Configuration Properties > VC++ Directories in order to include the OpenCV directories

Include directories: C:\OpenCV2.2\include\opencv; C:\OpenCV2.2\include (In OpenCV 2.2 the include directory contains the directories opencv and opencv2 and both are used to include files.)
Library directories: C:\OpenCV2.2\lib
Source directories: C:\OpenCV2.2\include

3. Change the project’s Property Pages > Configuration Properties > Linker > Input

Additional Dependencies add opencv_core220d.lib; opencv_highgui220d.lib for debugging or opencv_core220.lib;opencv_highgui220.lib for a release build

You may need to include another libraries, that depends on the functionality you are implementing in your program. You can find them in C:\OpenCV2.2\lib

Here is where you can find the Property Pages:

Where to find the Property Pages in VC++ 2010

I’m using MS Visual C++ 2010 Express, Windows 7 Professional 64 bit

Posted on February 16, 2011 at 9:36 pm by Isaias · Permalink · 2 Comments
In: Software · Tagged with: 

2 trees

Posted on October 17, 2010 at 11:26 pm by Isaias · Permalink · Leave a comment
In: Music

Ready to start

Posted on August 24, 2010 at 12:04 am by Isaias · Permalink · Leave a comment
In: Music

Flaws

Posted on June 12, 2010 at 12:24 am by Isaias · Permalink · Leave a comment
In: Music

Dust on the ground

Posted on May 24, 2010 at 1:28 am by Isaias · Permalink · Leave a comment
In: Music

Islands

I see islands in my future, in fact, an island within an island -nothing to do with the song.

Posted on May 9, 2010 at 7:56 pm by Isaias · Permalink · Leave a comment
In: Music

You left me, sweet, two legacies

You left me, sweet, two legacies, -
A legacy of love
A Heavenly Father would content,
Had He the offer of;

You left me boundaries of pain
Capacious as the sea,
Between eternity and time,
Your consciousness and me

Emilie Dickinson

Posted on May 9, 2010 at 2:36 am by Isaias · Permalink · Leave a comment
In: Poetry