Click here to Skip to main content
15,889,403 members
Home / Discussions / C#
   

C#

 
GeneralRe: Code optimization Pin
Luc Pattyn19-Oct-09 12:45
sitebuilderLuc Pattyn19-Oct-09 12:45 
AnswerRe: Code optimization Pin
tvbarnard20-Oct-09 1:33
tvbarnard20-Oct-09 1:33 
GeneralRe: Code optimization Pin
Luc Pattyn20-Oct-09 1:40
sitebuilderLuc Pattyn20-Oct-09 1:40 
GeneralRe: Code optimization Pin
tvbarnard20-Oct-09 6:50
tvbarnard20-Oct-09 6:50 
GeneralRe: Code optimization Pin
Luc Pattyn20-Oct-09 6:53
sitebuilderLuc Pattyn20-Oct-09 6:53 
GeneralRe: Code optimization Pin
tvbarnard20-Oct-09 6:55
tvbarnard20-Oct-09 6:55 
GeneralRe: Code optimization Pin
Luc Pattyn18-Oct-09 11:24
sitebuilderLuc Pattyn18-Oct-09 11:24 
GeneralRe: Code optimization Pin
tvbarnard18-Oct-09 22:37
tvbarnard18-Oct-09 22:37 
Sorry for the confusion.

In context of my system, a classifier would describe the way an image is evaluated and "classified" to contain a certain object in the image.

In my case, a classifier is a set of points in the image that respectively either get added or subtracted and thus return a real value. Using a threshold one can then decide accroding to the real value, whether the image represents that object or not.

For example, say you have a classifier:

int[] classifier = new int[] { 5, 6, 22}


then the image would be evaluated by adding all pixel values at coordinates {5, 6, 22} (assuming the image has been reshaped as a vector, and not a matrix).

Hope this is clear enough!

The point of the whole excercise, is to evaluate a set of classifiers on all images (each) and determine which is the best classifier. So what makes the excercise so computationally intensive, is that there exist at least 200,000 classifiers.

To answer your question on how long it takes to do an image, I haven't time it since it doesn't take very long. But the problem becomes exponentially more difficult if you increase your amount of images to let say 3000. I would estimate 3000 images, with 200,000 classifiers takes about 4min. 4 min doesn't sound long, but this must be done 500 times Smile | :) 500x4min = 33hrs!

The reason why I need to optimize this, is because firstly, it's not suppose to take so long (many papers report much faster times), and I also don't personally have the time to wait 30+hrs.

tvb

GeneralRe: Code optimization Pin
Luc Pattyn19-Oct-09 4:27
sitebuilderLuc Pattyn19-Oct-09 4:27 
GeneralRe: Code optimization Pin
tvbarnard19-Oct-09 4:42
tvbarnard19-Oct-09 4:42 
GeneralRe: Code optimization Pin
tvbarnard18-Oct-09 3:31
tvbarnard18-Oct-09 3:31 
AnswerRe: Code optimization Pin
Not Active18-Oct-09 3:30
mentorNot Active18-Oct-09 3:30 
GeneralRe: Code optimization Pin
tvbarnard18-Oct-09 3:36
tvbarnard18-Oct-09 3:36 
GeneralRe: Code optimization Pin
Not Active18-Oct-09 3:53
mentorNot Active18-Oct-09 3:53 
AnswerRe: Code optimization Pin
Alan Balkany19-Oct-09 5:12
Alan Balkany19-Oct-09 5:12 
GeneralRe: Code optimization Pin
tvbarnard19-Oct-09 5:31
tvbarnard19-Oct-09 5:31 
QuestionWinpcap Wpcap.dll packet.all Pin
Archy_Yu18-Oct-09 1:36
Archy_Yu18-Oct-09 1:36 
AnswerRe: Winpcap Wpcap.dll packet.all Pin
DaveyM6918-Oct-09 1:59
professionalDaveyM6918-Oct-09 1:59 
GeneralRe: Winpcap Wpcap.dll packet.all Pin
brickner26-Feb-10 6:20
brickner26-Feb-10 6:20 
QuestionEstablish several VPN connections with C# ? Pin
Mohammad Dayyan18-Oct-09 1:22
Mohammad Dayyan18-Oct-09 1:22 
QuestionGo to next page by scrolling in CrystalReport Pin
C#_Programmer18-Oct-09 1:21
C#_Programmer18-Oct-09 1:21 
QuestionProblem with windows service!! Pin
Nafiseh Salmani18-Oct-09 1:06
Nafiseh Salmani18-Oct-09 1:06 
Questionhow to searche in datagrid Pin
hadidehghani17-Oct-09 23:33
hadidehghani17-Oct-09 23:33 
AnswerRe: how to searche in datagrid Pin
dan!sh 17-Oct-09 23:47
professional dan!sh 17-Oct-09 23:47 
Questionhow to handle business layer validation error in presentation layer ? Pin
hdv21217-Oct-09 23:31
hdv21217-Oct-09 23:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.