View Single Post
  #3   Spotlight this post!  
Unread 13-03-2014, 15:11
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Image Threshold Always Returns Black Image - C++ / Vision / AXIS

Quote:
Originally Posted by Alan Anderson View Post
If the libraries work the same for C++ as they do for LabVIEW, a BinaryImage has values of 0 and 1. If you use a normal color palette to view it, the image will consist of pixels that are either truly black or so dark as to appear black. Change the palette to distinguish clearly between those two values and you'll probably see what you expect.
In C++ when you write a binary image (eg: filtered.bmp) the 1 pixels show up as red, 0 as black.