Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 28 results for
hsv
- Page 1
converting rgb values to hsv values
Programming
Web Development
18 Years Ago
by tristan17
Hi, I am looking for the algorthim for converting rgb to
hsv
values. Does anyone know of any program or algorithm in php?? thanks in advance, tris
'COLOR_BGR2HSV' : undeclared identifier
Programming
Software Development
10 Years Ago
by Vaaal
… objects based on the
HSV
slider values. cvtColor(cameraFeed,
HSV
,COLOR_BGR2HSV); inRange(
HSV
,Scalar(H_MIN,S_MIN,V_MIN),…threshold); morphOps(threshold); imshow(windowName2,threshold); trackFilteredObject(threshold,
HSV
,cameraFeed); } //show frames //imshow(windowName2,threshold); imshow…
Colour Conversion Class
Programming
Web Development
9 Years Ago
by diafol
…=> 0 [2] => 1 [3] => 0.49803921568627 ) [
hsv
] => Array ( [0] => 60 [1] => 100%…name'=>'Name','hsl'=>'HSL','cmyk'=>'CMYK','
hsv
'=>'
HSV
'); $in = strtolower(trim($formatIn)); $out = …
Re: 'COLOR_BGR2HSV' : undeclared identifier
Programming
Software Development
10 Years Ago
by JasonHippy
…(frame, imgHSV, CV_BGR2HSV); //Change the color format from BGR to
HSV
` Which looks as if it is exactly what you are…
Storing colors
Programming
Databases
15 Years Ago
by Lucrezia
… varying color systems (RGB, HSL, CMYK and LAB and/or
HSV
might be added later), so an enum field will be…
Mandelbrot coloring. Opencl
Programming
Software Development
12 Years Ago
by K0ns3rv
… the coloring is based on the iteration count generating a
HSV
color. TL;DR So for my question, how am I…
Re: Calculate the RGB of a Pixel
Digital Media
UI / UX Design
14 Years Ago
by JasonHippy
… more detailed info on the properties of the selected colour. (
HSV
, RGB, and HEX values). Trust me it sounds much more…
Re: Multiple Switch variables in a switch statement
Programming
Software Development
14 Years Ago
by josolanes
… one to the other, with the exception of HSL or
HSV
to the others and, so far, with the exception of…
Re: how to subdivide an axis using matplotlib
Programming
Software Development
13 Years Ago
by richieking
…', 'get_scale_names', 'getp', 'ginput', 'gray', 'grid', 'hexbin', 'hist', 'hlines', 'hold', 'hot', '
hsv
', 'imread', 'imsave', 'imshow', 'interactive', 'ioff', 'ion', 'is_numlike', 'is_string_like', 'ishold', 'isinteractive…
Re: image to ascii text
Programming
Web Development
13 Years Ago
by madCoder
… a color. Break that down into Hue, Saturation, and Value (
HSV
.) The Hue and Saturation become the color of the letter…
Re: urgent
Programming
Software Development
12 Years Ago
by dantinkakkar
Though we don't do other people's homework for them, and will not help you if you haven't done anything yourself, but since your post was marked [B]urgent[/B], you may have a look at this: [url]http://stackoverflow.com/questions/2399150/convert-rgb-value-to-
hsv
[/url]
Re: converting rgb values to hsv values
Programming
Web Development
18 Years Ago
by Phaelax
I wrote this for ya. Values from the function matched with what I get in Photoshop 5. I'm not sure how I know this, but H is out of 360 degrees, and S and V are a percentage. (incase you wondered about my output formula) [code] <? RGBtoHSV(110,143,176); function RGBtoHSV($red, $green, $blue) { $r = $red / 255.0; $g = $green / 255.0;…
Re: converting rgb values to hsv values
Programming
Web Development
18 Years Ago
by tristan17
Hi Phaelax, thanks for your code, i will try it and tell you what's the results. Appreciate lots, tristan
Re: converting rgb values to hsv values
Programming
Web Development
14 Years Ago
by muralibobby2015
just copy pste this coe. and first you create folder name as photo..[CODE]<?php ob_start(); extract($_POST); //echo $photo;exit; if($_POST) { $img_name=$_FILES["photo"]["name"]; //photo input field $randomizer = rand(0000, 9999); $file_name = $randomizer.$img_name; move_uploaded_file($_FILES["photo"…
Re: converting rgb values to hsv values
Programming
Web Development
14 Years Ago
by godelfin
The script works, but you have a typo in your example: [QUOTE=Phaelax;186355] [code] <? function RGBtoHSV($red, $green, $blue) { $min = min(min($r, $g),$b); $max = max(max($d, $g),$b); [/code] [/QUOTE] The $max variable should read $max = max(max($r, $g),$b). You have a $d in there. So it should read like this: [code] <? …
Re: converting rgb values to hsv values
Programming
Web Development
14 Years Ago
by almostbob
[url]http://www.sourcecodeonline.com/details/hsv_conversion_utilities.html[/url]
Changing the colour/HSV of a pixmap/pixbuf with a slider?
Programming
Software Development
14 Years Ago
by code177
Hi all! This is something I've been trying to figure out for a long time now. I have a pixbuf that I'd like to change the hue, saturation and/or brightness with using sliders, however I've not been able to find anything that points me in the right direction. If anyone has any ideas of how this can be done (seems impossible at the moment), I…
Re: Changing the colour/HSV of a pixmap/pixbuf with a slider?
Programming
Software Development
14 Years Ago
by vegaseat
Here is a code snippet that uses sliders to adjust the RGB values of a color. Look at: [url]http://www.daniweb.com/code/snippet216694.html[/url]
Re: Colour Conversion Class
Programming
Web Development
9 Years Ago
by broj1
Nice job. Haven't tested the class but after scanning the code it is obvious that this is a nice example of clean coding / useful functionality. Quite some work must have been put into this to gather all the information an put it into this little tool. I remember myself struggling a couple of times needing to convert between formats. Adding …
Re: Colour Conversion Class
Programming
Web Development
9 Years Ago
by diafol
No problem :) I've added css output for those formats that support it (string as opposed to array) and I've got HSLa sorted - but as RGBa is related to the internal workings (rgb), I'm looking at a major bit of refactoring -especially the constructor. Never mind - it's all good practice :)
Re: Colour Conversion Class
Programming
Web Development
9 Years Ago
by pritaeas
You could use [array_flip](http://www.php.net/manual/en/function.array-flip.php) to remove the need for the two constant arrays. Although a conversion is needed then.
Re: Colour Conversion Class
Programming
Web Development
9 Years Ago
by diafol
Yes I'm aware of the array_flip. It may be an idea - I'd then store the array in class scope - probably where it need to be actually. The additional conversion from int to rgb/a shouldn't be a problem. Good idea :) BTW - I've added support for opacity and css strings. However, on further testing I've found that the HSL conversion is acting …
Re: Storing colors
Programming
Databases
15 Years Ago
by Stylish
Two tables. Table1 is simply Color Names and Type. [code] create table Colors ( id int not null ,name varchar(16) not null ,system tinyint not null ) [/code] 'system' maps to a numerical value (1 = RGB, 2 = CMYK, etc) Table 2 is a table of key:value pairs [code] create table ColorPairs ( colorid int not null ,key …
Re: Storing colors
Programming
Databases
15 Years Ago
by Lucrezia
I finally decided to go with #3, so it's a bit late now.. Thanks for your time though :)
Re: Mandelbrot coloring. Opencl
Programming
Software Development
12 Years Ago
by mrnutty
[URL="http://stackoverflow.com/questions/369438/smooth-spectrum-for-mandelbrot-set-rendering"]http://stackoverflow.com/questions/369438/smooth-spectrum-for-mandelbrot-set-rendering[/URL]
Re: Mandelbrot coloring. Opencl
Programming
Software Development
12 Years Ago
by K0ns3rv
[QUOTE=firstPerson;1777717][URL="http://stackoverflow.com/questions/369438/smooth-spectrum-for-mandelbrot-set-rendering"]http://stackoverflow.com/questions/369438/smooth-spectrum-for-mandelbrot-set-rendering[/URL][/QUOTE] Thank you for the help, but I've already stumbled upon that discussion before and it's pretty much the root of my …
Re: Mandelbrot coloring. Opencl
Programming
Software Development
12 Years Ago
by mrnutty
I haven't worked with mandelbrot set but try using this : [code] //zn is your last complex number used and n is the iteration count flota smoothcolor = n + 1 - Math.log(Math.log(zn.abs()))/Math.log(2) Color col = Color.HSBtoRGB(0.95f + 10 * smoothcolor ,0.6f,1.0f); [/code]
Re: Mandelbrot coloring. Opencl
Programming
Software Development
12 Years Ago
by K0ns3rv
I've trie something like that but it just doesn't work at all. Smoothcolor is supose to be within [0,1) if you divide it by max iterations. And the code you posted doesn't seem to make any sense because for Color.HSBtoRGB the hue should be [0,1] and in that case if iterations are n it will be in [n,n+1). Maybe I am doing something really wrong, …
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC