Go to Post I was cheering like mad during the last match on Einstein - I think the rest of my team thought I was crazy...or crazier than they thought I was before! - Sean Schuff [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 02-12-2012, 12:08 PM
GrimmReaper's Avatar
GrimmReaper GrimmReaper is offline
Registered User
FRC #2046 (Bear Metal)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Maple Valley, WA
Posts: 24
GrimmReaper is on a distinguished road
Re: Convex Hull Produces Black Image

I hadn't tried a BMP or PNG file, but rather just converted the image(changed the contrast and gamma) so that i could see the contrasting pieces and saved that as a JPG, so here's another example for ya, this results in a white on black image:

Code:
		Image* thisImage = myBinaryImage->GetImaqImage();
				
		BCGOptions bcg;
		bcg.brightness = 128.0f;
		bcg.contrast = 89.0f;
		bcg.gamma = 0.1f;
		
		if (imaqBCGTransform(thisImage, thisImage, &bcg, NULL) == 0)
		{
			//error during save
			printf("Error with imaqBCGTransform : %d\n", imaqGetLastError());
			return ERROR;
		}
	
		if (imaqWriteFile(thisImage, "/BinaryImage.jpg", NULL) == 0)
		{
			//error during save
			printf("Error saving image : %d\n", imaqGetLastError());
			return ERROR;
		}
- Jon
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:28 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi