Questions tagged [skew]
382 questions
5
votes
1 answer
Trying to skew an image with PHP's GD Library
I've been looking everywhere to try and find a function to skew an image with php using the GD library. I've read threads where ImageMagick has been suggested but I unfortunately don't have access to that library on my server so I'm forced to use…

XeroBytez
- 51
- 1
- 3
5
votes
2 answers
Spark Dataset/Dataframe join NULL skew key
Working with Spark Dataset/DataFrame joins, I faced long running and failed with OOM jobs.
Here's input:
~10 datasets with different size, mostly huge(>1 TB)
all left-joined to one base dataset
some of join keys are null
After some analysis, I…

Mikhail Dubkov
- 1,223
- 1
- 12
- 16
5
votes
3 answers
Android: Draw shape with skewed corner
I want to use a background for my buttons. But when I use a png it slows down the app. Therefore I want to use a xml shape but I do not know how to make the corner cut (like on the picture).
By now I have the following shape which is just a…

Kewitschka
- 1,445
- 1
- 21
- 35
5
votes
2 answers
creating a responsive skewed background with css
I'm trying to create a skewed background on my website. The blocks will all have a skewed top and bottom line (like a parallelogram).
design example
Tried using css:
transform: skewY(-30deg);
but it's not working responsively. Any thoughts on a…

mas
- 53
- 1
- 1
- 3
5
votes
2 answers
skew UIView without giving perspective and keeping heigh and width
Hi,
I am trying to achieve a transformation like in the image but I only have got a similar transformation but with perspective (which I don't want) using CGATransform3D. How could I achieve this using objective-c? The transformed image should have…

user2248891
- 75
- 5
5
votes
2 answers
De-skew characters in binary image
I'm working on number plate recognition. The problem is that I have to de-skew the characters in a binary image to increase the accuracy of template matching.
I have done a lot of pre-processing to remove unnecessary pixels of the image and I could…

Wong Wengkeong
- 181
- 1
- 14
5
votes
2 answers
Calculating skew of text OpenCV
I am trying to calculate the skew of text in an image so I can correct it for the best OCR results.
Currently this is the function I am using:
double compute_skew(Mat &img)
{
// Binarize
cv::threshold(img, img, 225, 255,…

Clip
- 3,018
- 8
- 42
- 77
5
votes
2 answers
pig skewed join with a big table causes "Split metadata size exceeded 10000000"
We have a pig join between a small (16M rows) distinct table and a big (6B rows) skewed table.
A regular join finishes in 2 hours (after some tweaking). We tried using skewed and been able to improve the performance to 20 minutes.
HOWEVER, when we…

ihadanny
- 4,377
- 7
- 45
- 76
4
votes
4 answers
random variable from skewed distribution with scipy
trying to draw a random number from a distribution in SciPy, just like you would with stats.norm.rvs. However, I'm trying to take the number from an empirical distribution I have - it's a skewed dataset and I want to incorporate the skew and…

eric p
- 235
- 5
- 13
4
votes
1 answer
transform: skew causes gap between elements in Firefox
When i use transform:skew it results in a gap between divs in Firefox but not Chrome.
Edit: I've animated the height of the divs to make the gap more visible, because it's not visible at all values.
Firefox left, Chrome right
@keyframes test {
…

DvdRom
- 738
- 4
- 13
4
votes
1 answer
Open source image skew detection/correction libraries in java?
I need to perform skew correction on some images (lets say the format is tiff). That is, I have some images which can come in tilted to the right or left and I need to adjust them so that they are straight up and down. The images consist of text and…

user364902
- 3,146
- 6
- 23
- 23
4
votes
1 answer
How to create a separation animation in CSS upon hover of a picture?
I have the picture below to which I would like to animate a diagonal split from the line cut through the logo from the top left to bottom right as shown below. The animation would split the picture on the X axis a few pixels…

Sam Raha
- 53
- 4
4
votes
1 answer
Can I set different autoBroadcastJoinThreshold value in sparkConf for different sql?
I have large DataFrames:A(200g), B(20m), C(15m), D(10m), E(12m), I want to join them together: A join B, C join D and E using spark sql in same SparkSession**. Just like:
absql:sql("select * from A a inner join B b on…

fifth
- 63
- 1
- 4
4
votes
1 answer
Skew only right side of element
I need to make something like this
For now i have made to look like this, btw i am using bootstrap 3.
This is my code for now
/* nav stuff */
ul,
li,
a {
display: inline-block;
text-align: center;
}
/* appearance styling…

Miomir Dancevic
- 6,726
- 15
- 74
- 142
4
votes
0 answers
Generate nonnormal distribution with set skewness and kurtosis
I am trying to write R code to generate a nonnormal distribution (i.e., a normal distribution with specific skewness and kurtosis). I would like this distribution to have the following parameters: mean (0), variance (1), skewness (3), and kurtosis…

HAL-9000
- 99
- 2
- 9