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

C#

 
GeneralRe: Error Cannot implicitly convert type 'byte' to 'CrystalDecisions.CrystalReports.Engine.BlobFieldObject' Pin
KIDYA26-Jun-09 19:30
KIDYA26-Jun-09 19:30 
QuestionWhat would make a CodeAccessPermission.Assert() fail or succeed? Pin
Super Lloyd26-Jun-09 2:08
Super Lloyd26-Jun-09 2:08 
QuestionC# Performance? Pin
tvbarnard26-Jun-09 1:16
tvbarnard26-Jun-09 1:16 
AnswerRe: C# Performance? Pin
Manas Bhardwaj26-Jun-09 1:27
professionalManas Bhardwaj26-Jun-09 1:27 
AnswerRe: C# Performance? Pin
musefan26-Jun-09 1:44
musefan26-Jun-09 1:44 
GeneralRe: C# Performance? Pin
tvbarnard26-Jun-09 2:00
tvbarnard26-Jun-09 2:00 
QuestionRe: C# Performance? Pin
tvbarnard26-Jun-09 2:38
tvbarnard26-Jun-09 2:38 
AnswerRe: C# Performance? Pin
musefan26-Jun-09 3:08
musefan26-Jun-09 3:08 
you can use any source of input as long as you are able to obtain each frame as an image.

In regards to you concern about dealing with different image formats then you could go for converting the images so each one is the same, that will of course add cost to processing but I think it will be very little compared to what you image processing algorithms are going to require.

If I needed to deal with multiple image formats then I would write a class that deals with that and you algorithm simply asks this class for the pixel data it wants to use.

For example I would have a class with the following functions...


public ImageFormat formatForImage;//this is set based on the input source

public Pixel GetPixel(int xPos, int yPos)
{
    if(formatForImage == type1)
        //process and return pixel
    else if(formatForImage == type2)
        //process a different way and return pixel in same format
}


...Hope that helps explain my meaning. You can choose for this class to work in different ways, you could pass it each frame from the video or you could have it load the next frame itself with the use of a NextFrame function etc.

In my opinion it does not matter what format you work with as all your algorithms will need to be concerned with is the values of each pixel.

I think the best way is have a class like above that can load a bitmap from a given file, then have a function that returns the pixel you want to use.
Then when you need to make it do video you just add that functionailty to the class, then a pixel will always be returned the way your algorithms wants them to be.

Hope that makes sense Smile | :)

Life goes very fast. Tomorrow, today is already yesterday.

QuestionRe: C# Performance? Pin
Simon P Stevens26-Jun-09 1:57
Simon P Stevens26-Jun-09 1:57 
AnswerRe: C# Performance? Pin
tvbarnard26-Jun-09 2:07
tvbarnard26-Jun-09 2:07 
GeneralRe: C# Performance? Pin
Simon P Stevens26-Jun-09 3:29
Simon P Stevens26-Jun-09 3:29 
AnswerRe: C# Performance? Pin
Rajesh R Subramanian26-Jun-09 2:12
professionalRajesh R Subramanian26-Jun-09 2:12 
GeneralRe: C# Performance? Pin
tvbarnard26-Jun-09 2:16
tvbarnard26-Jun-09 2:16 
GeneralRe: C# Performance? Pin
Simon P Stevens26-Jun-09 3:32
Simon P Stevens26-Jun-09 3:32 
GeneralRe: C# Performance? Pin
Rajesh R Subramanian26-Jun-09 4:17
professionalRajesh R Subramanian26-Jun-09 4:17 
QuestionDisabling the Cancel Button During an Installation Pin
Imranlogi26-Jun-09 0:58
Imranlogi26-Jun-09 0:58 
QuestionPrinting without colour (or color) [modified] Pin
musefan26-Jun-09 0:54
musefan26-Jun-09 0:54 
AnswerRe: Printing without colour (or color) Pin
Manas Bhardwaj26-Jun-09 1:34
professionalManas Bhardwaj26-Jun-09 1:34 
GeneralRe: Printing without colour (or color) [modified] Pin
musefan26-Jun-09 1:47
musefan26-Jun-09 1:47 
QuestionHow to determine the keypress/mouse click is human action or simulation? Pin
alien viper26-Jun-09 0:08
alien viper26-Jun-09 0:08 
AnswerRe: How to determine the keypress/mouse click is human action or simulation? Pin
Christian Graus26-Jun-09 0:13
protectorChristian Graus26-Jun-09 0:13 
AnswerRe: How to determine the keypress/mouse click is human action or simulation? Pin
mutpan26-Jun-09 1:08
mutpan26-Jun-09 1:08 
GeneralRe: How to determine the keypress/mouse click is human action or simulation? Pin
Rajesh R Subramanian26-Jun-09 1:18
professionalRajesh R Subramanian26-Jun-09 1:18 
AnswerRe: How to determine the keypress/mouse click is human action or simulation? Pin
Rajesh R Subramanian26-Jun-09 1:19
professionalRajesh R Subramanian26-Jun-09 1:19 
AnswerRe: How to determine the keypress/mouse click is human action or simulation? Pin
molesworth26-Jun-09 3:03
molesworth26-Jun-09 3:03 

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.