Order of image manipulation [closed]

asked 2014-06-14 01:42:28 -0600

the___doctor gravatar image

updated 2014-06-14 03:49:46 -0600

berak gravatar image

I am trying to write a program that will give an outline of an set object in an image like so:

cvtColor( frameToUse, frameToUse, CV_BGR2GRAY );          //1
equalizeHist( frameToUse, frameToUse );                   //2
blur(frameToUse, frameToUse, Size(9,9), Point(-1,1), 4);  //3
Canny( frameToUse, frameToUse, 40, 3*35, 3 );             //4

I am wondering, what is the correct order to put these functions in to produce the results most efficiently. (ill closely watch comments if clarification is needed)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-01 12:41:37.210331

Comments

3,1,2,4......

Haris gravatar imageHaris ( 2014-06-14 02:00:12 -0600 )edit
1

if you post comment as answer, i will accept, cheers.

the___doctor gravatar imagethe___doctor ( 2014-06-14 02:10:24 -0600 )edit
1

Let it be like this ......:)

Haris gravatar imageHaris ( 2014-06-14 02:13:41 -0600 )edit