element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs RPiNoIR as is or with various coloured filters in low light photography.
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Former Member
  • Date Created: 26 Feb 2014 6:14 PM Date Created
  • Views 836 views
  • Likes 1 like
  • Comments 2 comments
  • security
  • white
  • Black
  • camera.
  • imagery
  • photography
  • coloured
  • and
  • rpi
  • surveillance
  • histograms
  • noir
  • filters
  • colfx
Related
Recommended

RPiNoIR as is or with various coloured filters in low light photography.

Former Member
Former Member
26 Feb 2014

Having a background in photography my interest in the Raspberry Pi started because I saw some potential for expanding my horizons in this field.  I have previously worked with infra-red film so the development of the NoIR Pi camera module has given me even more reason to get involved with this wonderful new computer.

 

My initial areas of interest are security and surveillance, motion detection (for surveillance and wildlife/people/other image capture, time-lapse and special effects photography. Most of these mean working with low light levels so there was a need to start testing the camera to see what it can produce. When working with infra-red film I generally used a red and/or UV  filter to boost the effect and reduce unwanted blue/green light. This lead me to thinking that if I use the camera with other coloured filters as well I would be able to produce some rather interesting effects - although usually with IR surveillance I would be producing black and white images.

 

My first trials with the camera modules - both normal and NoIR - involved the time-lapse function as this would be one of my surveillance methods. I was using available light but, although reasonably happy with the results, I wanted to see if using filters would improve the camera’s ability to capture light.

 

So, some testing was planned and the first test gave me some interesting and useful results.

 

The location chosen was a dimly lit street with one main light source and a large amount of greenery for someone to hide in. The results shown here are from using no filters and four different coloured filters including the blue filter that comes with the NoIR camera module - red, green, blue and yellow. I took colour and black and white images.

 

The following comes from various sources but I think originated from the Mag-Pi magazine and I used it as a guide for several of the images.

 

"The colour effects option (--colfx) is interesting. Internally, the image is represented using a YUV colour space. YUV represents colour using the luminance, Y, and the blue–luminance and red–luminance differences, UV. The colour effects option allows us to specify the values we are going to use for U and V (range 0 to 255)  This gives us a quick and easy way to do black and white images, we just need to set UV equally to the middle of the range, which is 128. So

 

raspistill -t 5000 --colfx 128:128 -o image.jpg

 

Other values for U and V give varying blue and red differences from the middle."

 

Here are the resulting images (7 x 2) with corresponding histograms for comparison.

Fullscreen contentimage_30003.html Download
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
Fullscreen contentimage_30004.html Download
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
Fullscreen contentimage_30005.html Download
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
image

Now this is where things became interesting as I altered the --colfx settings.

 

image

image

Notice the shift to yellow/green resulting from the change from --colfx 128:128 to --colfx 156:100 and 200:56

The second image here - --colfx 200:56 - shows are distinct increase in light captured. And finally this image converted to black and white, post production, and with some changes to the 'levels'. There is an increase in the amount of noise but also more detail to be seen which is useful when shooting in very low light levels.

Fullscreen contentimage_30009.html Download
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>

 

Future blogs will cover these same filters (and more) and possibly the 'normal' camera module in daylight and other well lit situations. I hope to show some special effects and/or abstract images and see what benefits there are, if any, in using these filters for surveillance images.

  • Sign in to reply
  • Former Member
    Former Member over 11 years ago in reply to mcb1

    Thanks, I move slowly but now that I have finished the rig that holds the Pi and camera to a tripod I hope to get the next stages started soon. The --colfx settings seem to have good potential for tweaking images and for producing special effects.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 11 years ago

    Picrypt

    This is a very good and useful experiment.

    I'll have to go back to mine and try the -colfix settings to see how it impacts.

     

    Thanks and looking forward to your further experiments.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube