Windows Advanced Rasterization Platform. This does NOT refer to the Haskell warp HTTP server, use the haskell-warp tag instead!
Questions tagged [warp]
94 questions
21
votes
5 answers
Warp \ bend effect on a UIView?
I'm trying to get a similar effect to the one described in the pictures. The white area on the left isn't on the original photo, it pushes the pixels away. I've tried using Core Image (which offered a few close effects to this) but it was too slow…

Segev
- 19,035
- 12
- 80
- 152
19
votes
1 answer
Unwanted Warp effect drawing text on path android
I do some tests on drawing text on path. I made a background picture by setting bitmap to the canvas. Then, I draw text on a path to canvas, rotated by matrix. I have to shorten the code, I will only post the important part because it is too long.…

Opiatefuchs
- 9,800
- 2
- 36
- 49
8
votes
1 answer
How do I perform an image warp or transformation from one coordinate system to another for a barrel distorted image?
I have used this question to help me come up with an undistorted coordinated system of an image. Now, I'm not sure how to implement the new coordinate system into the image so I can be able to produce an undistorted image.
I'm having trouble…

SqueakyBeak
- 366
- 4
- 15
7
votes
1 answer
Android OpenCV getPerspectiveTransform and warpPerspective
I am a bit confused with the parameters of getPerspectiveTransform as I cannot see a proper image. Here is my code. The original_image variable is the image that contains a square object (and some others) that I want to crop and create a new image…

James Arnold
- 698
- 3
- 9
- 22
6
votes
0 answers
How can we do multi-point warping in opencv
Usually we use 4 points for correcting perspective of an image. How can we use more number of points to convert a very distorted edged rectangle into a straight rectangle in opencv. Basically I'm trying to warp an image with a piece of cloth. The…

Sum-Al
- 193
- 1
- 9
5
votes
3 answers
How to gracefully shutdown a warp server?
I'm writing a service with warp in Rust. When the service receives a SIGTERM signal, I'd like to have it shutdown gracefully and possibly do some logging or other work.
I have tried a number of examples and nothing works. The most promising seems to…

DungeonTiger
- 627
- 1
- 9
- 21
5
votes
1 answer
What is the point of an Infallible Result, over just returning the Ok() branch?
The canonical example of a Warp rejection handler is
async fn handle_rejection(err: Rejection) -> Result {
But what's the advantage of a Result such that the err is Infallible and can never be reached? Why not just…

Evan Carroll
- 78,363
- 46
- 261
- 468
4
votes
2 answers
How to listen on multiple ports with warp?
warp::serve(routes)
.run(([127, 0, 0, 1], 3030))
.await;
How can I listen to different ports for http requests and websocket connection?

AidonCason
- 63
- 5
4
votes
2 answers
Avoiding Errors caused by IO when talking to a database inside of a WAI handler
I am writing a web service in haskell using warp, wai, and acid-state. As of now, I have two handler functions that require database interaction, the latter of which is giving me trouble.
The first, is registration:
registerUser :: AcidState…
user3594595
4
votes
0 answers
How to detect perspective distortion from single image in OpenCV?
I am making a program that recognizes horizontal/vertically straight lines from an image file and creates a bunch of line data for other purpose.
However I got a problem that when I take pictures from diagonally sideways(or up/downwards), that…

Suhyeon Lee
- 569
- 4
- 18
3
votes
1 answer
How to create function to return routes with warp
I'm trying to refactor my REST server to use modules. I am having a lot of trouble determining what types to return. Consider the simple example below:
main.rs
use warp_server::routes::routers::get_routes;
#[tokio::main]
async fn main() {
let…

DungeonTiger
- 627
- 1
- 9
- 21
3
votes
1 answer
how to use Warp filter of jhlabs image library in android
I want to use WarpFilter of jhlabs in my android application.For that i used jar provided by jhlabs but in that , there is no definition of WarpFilter class. I reffered WarpFilter and this link.I tried to use that class by copying it in my…

Zankhna
- 4,570
- 9
- 62
- 103
3
votes
0 answers
How Can I Perform a Perspective Transform Using a Homography Matrix (3x3) in JavaCV?
I have been trying for some time now to take an image of a pool table from an arbitrary angle, locate four coordinate pairs (x,y) of the corners, and rotate/warp the image such that the resulting image contains only the table from a bird's eye view.…

Matthew
- 777
- 1
- 9
- 23
3
votes
1 answer
OpenCl max warp and work-group per compute unit
Can I get maximum warp/work-group on one compute unit through some function like clGetDeviceInfo.
From what I've found the number depends only on Compute capability.So is there any function that can detect it?
thx
jikra

cizek
- 31
- 2
2
votes
0 answers
Replace tf.gather with other OPs which are supported by TFLite GPU delegate
Does anyone know how to replace tf.gather with other OPs which are supported by TFLite GPU delegate? I want to convert a TensorFlow model with a warp operation to a TFLite model to be used on Android devices, but the warp needs to use tf.gather to…

zyhe
- 21
- 1