4 Replies - 1460 Views - Last Post: 18 January 2011 - 08:32 AM Rate Topic: -----

#1 justuskun   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 09-January 11

Get contrast value

Posted 17 January 2011 - 10:48 PM

Hi!, how can I get the value of the overall contrast of the video I'm playing?

Because I need to detect smoke in a video and i figured that smoke = degrading contrast.

so I'm thinking along the path of get contrast value of 1st frame and update the value every frame, if value is degrading then smoke is detected. I'm also using AForge.NET framework.
So please help! :D

Is This A Good Question/Topic? 0
  • +

Replies To: Get contrast value

#2 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6537
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: Get contrast value

Posted 18 January 2011 - 08:17 AM

Quote

so I'm thinking along the path of get contrast value of 1st frame and update the value every frame, if value is degrading then smoke is detected.


That was pretty much going to be my suggestion. The only way you can tell if something is degraded is to have an earlier non-degraded baseline. So you have to compare specific points between frames.

Sounds like you are on the right track.
Was This Post Helpful? 1
  • +
  • -

#3 justuskun   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 09-January 11

Re: Get contrast value

Posted 18 January 2011 - 08:22 AM

hehe yuh i hope! haha
Do you know any commands or methods that can help me implement this? :D
Sry for my lack of knowledge
I'm not actually a very good programmer :S
Was This Post Helpful? 0
  • +
  • -

#4 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6537
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: Get contrast value

Posted 18 January 2011 - 08:28 AM

It is a primary tenant of this site that you make your own best effort to write your own code. Otherwise we are reduced to nothing but a free code-writing service for Indian outsource companies.

You will learn more by reading the Aforge documentation and experimenting on your own than you will from someone just handing you a pre-written method.

Since you are making use of someone else's library your best source of information is the creator of the library.
Was This Post Helpful? 1
  • +
  • -

#5 justuskun   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 09-January 11

Re: Get contrast value

Posted 18 January 2011 - 08:32 AM

Ouh lol i'm sorry i didn't know its so serious, Thanks anyways. Cause I've mostly been just trying out all the color,threshold filter ect.. I'll slowly try tomorrow and try to get that right :D
Thanks anyways!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1