gradient

C++AMP Computing gradient using texture on a 16 bit image

一曲冷凌霜 提交于 2019-12-02 03:31:33
I am working with depth images retrieved from kinect which are 16 bits. I found some difficulties on making my own filters due to the index or the size of the images. I am working with Textures because allows to work with any bit size of images. So, I am trying to compute an easy gradient to understand what is wrong or why it doesn't work as I expected. You can see that there is something wrong when I use y dir. For x: For y: That's my code: typedef concurrency::graphics::texture<unsigned int, 2> TextureData; typedef concurrency::graphics::texture_view<unsigned int, 2> Texture cv::Mat image =

how to color a qualitative gradient with R (using independent categories / multiple dimensions)

落爺英雄遲暮 提交于 2019-12-02 02:42:00
问题 sorry if i'm missing something fundamental about how colorRampPalette and brewer.pal work, but how can you create a qualitative color gradient based on multiple variables? my goal is to create a multidimensional qualitative gradient like the image shown below (red-to-green, red-to-yellow, red-to-blue and not red-to-yellow-to-green-to-blue). minimal a reproducible example: # example data set mydata <- data.frame( v = runif( 100 ) , w = runif( 100 ) , x = runif( 100 ) , y = runif( 100 ) , z =

Gradient Button in Xamarin Forms

亡梦爱人 提交于 2019-12-02 01:50:35
How do I create this button with Gradient Effect in Xamarin Forms using Renderer ? In xamarin you can't add gradient colors as a built in feature. You have to create a different rendering feature. This link will guide you. In Xamarin Forms Craets public class GradientColorStack:StackLayout { public Color StartColor { get; set; } public Color EndColor { get; set; } } And then Renderer Android public class GradientColorStackRenderer : VisualElementRenderer<StackLayout> { private Color StartColor { get; set; } private Color EndColor { get; set; } protected override void DispatchDraw(global:

TensorFlow apply_gradients remotely

微笑、不失礼 提交于 2019-12-02 01:20:00
问题 I'm trying to split up the minimize function over two machines. On one machine, I'm calling "compute_gradients", on another I call "apply_gradients" with gradients that were sent over the network. The issue is that calling apply_gradients(...).run(feed_dict) doesn't seem to work no matter what I do. I've tried inserting placeholders in place of the tensor gradients for apply_gradients, variables = [W_conv1, b_conv1, W_conv2, b_conv2, W_fc1, b_fc1, W_fc2, b_fc2] loss = -tf.reduce_sum(y_ * tf

how to color a qualitative gradient with R (using independent categories / multiple dimensions)

风流意气都作罢 提交于 2019-12-02 01:14:12
sorry if i'm missing something fundamental about how colorRampPalette and brewer.pal work, but how can you create a qualitative color gradient based on multiple variables? my goal is to create a multidimensional qualitative gradient like the image shown below (red-to-green, red-to-yellow, red-to-blue and not red-to-yellow-to-green-to-blue). minimal a reproducible example: # example data set mydata <- data.frame( v = runif( 100 ) , w = runif( 100 ) , x = runif( 100 ) , y = runif( 100 ) , z = runif( 100 ) ) # five columns of random values between zero and one # use three columns with the `rgb`

Gradient not working in IE 10/11

…衆ロ難τιáo~ 提交于 2019-12-02 00:53:51
问题 here my CSS to get the gradient working in any browser, inlcuding IE up to version 9 (IE9): .wrapper { background:-moz-linear-gradient(top , #0f1925, #000) repeat scroll 0 0 transparent; background:-o-linear-gradient(top , #0f1925, #000) repeat scroll 0 0 transparent; background:-webkit-linear-gradient(top , #0f1925, #000) repeat scroll 0 0 transparent; filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#0f1925', endColorStr='#000', GradientType=0); } It won't work for IE 10/11

I would like to have a background-image with a 'fade out effect'. CSS3

懵懂的女人 提交于 2019-12-01 23:12:04
问题 Is it possible to achieve fade out transparent effect on an image from the center of an image to the left of the image I have tried the below and i get no results #content { display: block; width: 960px; margin: auto; margin-top: 48px; background-image: url(../images/feature-image-wild-horse.jpg), -moz-linear-gradient(left, #444444, #999999); /* FF3.6+ */ overflow: hidden; } 回答1: One solution would be to use a blurred inset box shadow (https://developer.mozilla.org/en/docs/CSS/box-shadow):

I would like to have a background-image with a 'fade out effect'. CSS3

落爺英雄遲暮 提交于 2019-12-01 22:35:58
Is it possible to achieve fade out transparent effect on an image from the center of an image to the left of the image I have tried the below and i get no results #content { display: block; width: 960px; margin: auto; margin-top: 48px; background-image: url(../images/feature-image-wild-horse.jpg), -moz-linear-gradient(left, #444444, #999999); /* FF3.6+ */ overflow: hidden; } One solution would be to use a blurred inset box shadow ( https://developer.mozilla.org/en/docs/CSS/box-shadow ): http://jsfiddle.net/n1ck/NkHdh/4/ #content { width:350px; height:350px; background-image: url(http:/

CSS: Gradient text colour?

孤人 提交于 2019-12-01 22:23:37
I'm trying to get some text to have a gradient colour, but I haven't a clue how. I'm trying to get it like this: The only thing I have tried is -webkit-mask , but I couldn't get that working how I wanted it to. The other thing would be -webkit-gradient in the color property - is that possible? Cross browser compatibility is fairly important, but not the end of the world. I'd prefer the text to be a solid colour in IE than to convert the entire thing into an image (there is quite a bit of text like this, some of it dynamic). For webkit based browsers (Chrome & Safari) : .text { font-size: 20px;

parse css gradient rule with Javascript regex

会有一股神秘感。 提交于 2019-12-01 21:39:43
in my css file I have gradient rule, like this: background-image:linear-gradient(to right, #FF0000 0%, #00FF00 20px, rgb(0, 0, 255) 100%); I want to get all parts of this string. Expected output is: linear-gradient to right #FF0000 0%, #00FF00 20px, rgb(0, 0, 255) 100% it was too difficult for me to work on whole string so I decided to split it into parts. linear-gradient .*gradient[^\(]? colors rgb ?\([ 0-9.%,]+?\)|#[0-9a-fA-F]{3,6}\s[0-9]{1,3}[%|px]|#[0-9a-fA-F]{3,6}|(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow){1}(\s[0-9]{1,3}\s*[%|px