
Registered since September 28th, 2017
Has a total of 4246 bookmarks.
Showing top Tags within 2 bookmarks
howto information development guide reference administration design website software solution service product online business uk tool company linux code server system application web list video marine create data experience description tutorial explanation technology build blog article learn world project boat download windows security lookup free performance javascript technical network control beautiful support london tools course file research purchase library programming image youtube example php construction html opensource quality install community computer profile feature power browser music platform mobile user process work database share manage hardware professional buy industry internet dance advice installation developer 3d search access material customer travel camera test standard review documentation css money engineering develop webdesign engine device photography digital api speed source program management phone discussion question event client story simple water marketing app content yacht setup package fast idea interface account communication cheap compare script study market live easy google resource operation startup monitor training
Tag selected: grayscale.
Looking up grayscale tag. Showing 2 results. Clear
Saved by uncleflo on March 12th, 2012.
Colours in an image may be converted to a shade of gray by calculating the effective brightness or luminance of the colour and using this value to create a shade of gray that matches the desired brightness. The following code snippet isn't really a good example of how it should be done in a production situation but it does show the principles involved clearly. For every day use. see the ColorMatrix example below. The effective luminance of a pixel is calculated with the following formula: Y=0.3RED+0.59GREEN+0.11Blue This luminance value can then be turned into a grayscale pixel using Color.FromArgb(Y,Y,Y). Converting an image from colour to monochrome can be performed using the following code.
development formula ratio color luminance grayscale convert graphic information
Saved by uncleflo on March 11th, 2012.
The NXT image scanner is a "stand alone" scanner that can scan and save images as a BMP-file in the NXT's flash memory. Images can be saved in either 24-bit true color, 8-bit color or gray scale. Gray scale images are scanned using the light sensor whereas color images are scanned using the HiTechnic color sensor. The scanner has a small LCD menu that let's you set the properties for the scan. Obviously the NXT image scanner is based on experience from my RCX scanner. Where the RCX scanner would take forever to scan even a small image the NXT scanner is much faster and the end result is to my own surprise improved. At the bottom of the page you will find building instructions and program for building your own image scanner.
nxt sensor motor brick lego mindstorms scanner bmp grayscale color write download nxc code development
No further bookmarks found.