Questions tagged [skew]

382 questions
10
votes
1 answer

Does "n * (rand() / RAND_MAX)" make a skewed random number distribution?

I'd like to find an unskewed way of getting random numbers in C (although at most I'm going to be using it for values of 0-20, and more likely only 0-8). I've seen this formula but after running some tests I'm not sure if it's skewed or not. Any…
Robert
  • 217
  • 1
  • 3
  • 8
8
votes
1 answer

skew detection and reduction in opencv

I've been working on a project that involves several preprocessing on a scanned document. Part of this preprocesses is skew detection and correction . Before skew detection and correction i have a binarization process going on for the document…
kcire arraveug
  • 213
  • 1
  • 6
  • 13
8
votes
3 answers

Skewing a bitmap only in the vertical direction

I want to skew (correct me if this is not the correct word) a bitmap so that it appears to have depth. A good way to visualize what I am asking for is how the credits of Star Wars are angled to show depth. I have tried the…
mdupls
  • 2,012
  • 1
  • 27
  • 40
8
votes
2 answers

skew() function in depth

I really need to understand how skew(xdeg) function works all research does not seem to explain how the x angle affecting the other points and distorts it like that, I need to know if there any mathematical formula it or a way to be able to expect…
A. AbdElaal
  • 135
  • 7
8
votes
2 answers

Skew one side only of an element

I'm tying to get a result as this image : I tried that : #parallelogram-container { margin: 0 50px; } .parallelogram { background: #008dd0; width: 200px; border: none; display: inline-block; height: 90px; …
user3405644
  • 195
  • 1
  • 2
  • 11
8
votes
2 answers

How to Slant/Skew only the bottom of the div

I have been trying to add a Skew/Slant to the bottom of a div. I have had some success, as you can see below in my JSFiddle, I have managed to apply the skew but it's not completely how I wanted it. https://jsfiddle.net/hcow6kjr/ Currently the Skew…
Chris
  • 313
  • 1
  • 4
  • 21
7
votes
2 answers

How to extend the 'summary' function to include sd, kurtosis and skew?

R's summary function works really well on a dataframe, giving, for example: > summary(fred) sum.count count sum value Min. : 1.000 Min. : 1.0 Min. : 1 Min. : 0.00 1st Qu.: 1.000 …
Peter Brooks
  • 349
  • 3
  • 13
7
votes
4 answers

How to use skew only in the parent element?

Is there any way to use skew only in a parent element? I need to create something like a 'diamond' as a mask and the child elements can't be affected. There is no way, in this case, to use png as a mask. Thanks in advance!
Túlio Ribeiro
  • 103
  • 1
  • 4
6
votes
3 answers

Left align skewed text in container

I have to apply skew and rotate on an element. It works fine but the skewed text isn't left aligned in it's container (see the result image): The text on the left is overflowing the container: the H (from "Hello") and the T (from "The") alignment…
Pioter
  • 465
  • 3
  • 8
  • 21
6
votes
1 answer

Make images overlap, despite being translated

I will have two images. They will be either the same or almost the same. But sometimes either of the images may have been moved by a few pixels on either axis. What would be the best way to detect if there is such a move going on? Or better still,…
john-jones
  • 7,490
  • 18
  • 53
  • 86
6
votes
1 answer

3D skew transformation matrix along one coordinate axis

Is there a way to calculate the skew transformation matrix along one coordinate axis, given the skew angle, as follows
rraallvv
  • 2,875
  • 6
  • 30
  • 67
5
votes
2 answers

Skew transformation HTML5 canvas

I'm trying to implement skew transformation using the "x" axis with HTML5 canvas, but my code fails... Here is my JavaScript: function init() { var canvas = document.getElementById('skewTest'), context = canvas.getContext('2d'), …
user551761
5
votes
1 answer

How can I calculate skewness via Xarray

I found the amazing capability of xarray to perform variable resampling and mean, and standard deviation calculations. Is there a direct way to calculate skewness after temporal resampling of data just like with the .mean() method? Thanks
5
votes
2 answers

Set margin of skewed

I just skewed a section which is serving as a banner. Now this section takes a higher height than expected obviously because of the skew. How can I define my bottom margin based on this new height? .banner{ transform: skewY(-5deg); …
FabZbi
  • 508
  • 5
  • 14
1
2
3
25 26