warp

SharpDX WARP - minimal code to get a drawable surface

别来无恙 提交于 2020-01-07 04:19:28
问题 I asked another question about generating high quality graphics in a service on Windows Server and SharpDX looks like a reasonable possibility. However I am finding it difficult to find current how-to style documentation. I am specifically interested in the WARP device context. My use-case is for generation of png format images, and steps of interest are initialisation, loading existing images, drawing graphics and text on them, a resizing / scaling, and saving to png format. I mention this

Calculating new positions of keypoints

a 夏天 提交于 2019-12-25 12:13:30
问题 can somebody help me, how we can calculate the new positions of keypoints in the transformed image,the keypoints were detected in original image. I am using opencv homography matrix and warpPerspective to make the transformed image. Here is a code.. ... std::vector< Point2f > points1,points2; for( int i = 0; i < matches1.size(); i++ ) { points1.push_back( keypoints_input1[matches1[i].queryIdx ].pt ); points2.push_back( keypoints_input2[matches1[i].trainIdx ].pt ); } /* Find the Homography

Calculating new positions of keypoints

流过昼夜 提交于 2019-12-25 12:13:16
问题 can somebody help me, how we can calculate the new positions of keypoints in the transformed image,the keypoints were detected in original image. I am using opencv homography matrix and warpPerspective to make the transformed image. Here is a code.. ... std::vector< Point2f > points1,points2; for( int i = 0; i < matches1.size(); i++ ) { points1.push_back( keypoints_input1[matches1[i].queryIdx ].pt ); points2.push_back( keypoints_input2[matches1[i].trainIdx ].pt ); } /* Find the Homography

library to warp text on HTML5 canvas similar to csswarp on DOM

落爺英雄遲暮 提交于 2019-12-24 03:23:36
问题 I want to warp text on HTML Canvas around Bezeir curves and Circles. CSSWarp library does that using CSS3 on DOM. I am looking for a library which does the same on HTML canvas. I googled in vain. Did anyone come across such a library? Or was anyone able to successfully warp text on HTML5 canvas around bezeir curves/circles? 回答1: I don't really know if something similar has been done in HTML5, but there are a tons of experiments done in Flash. Yous should check this blog: http://algorithmist

Extract a part of UIImageView

北慕城南 提交于 2019-12-18 07:15:29
问题 I was wondering if it's possible to "extract" a part of UIImageView . For example, I select using Warp Affine a part of the UIImageView and I know the selected part frame . like in this image: Is it possible to get from the original UIImageView only the selected part without losing quality? 回答1: Get the snapshot of the view via category method: @implementation UIView(Snapshot) -(UIImage*)makeSnapshot { CGRect wholeRect = self.bounds; UIGraphicsBeginImageContextWithOptions(wholeRect.size, YES,

Extract a part of UIImageView

和自甴很熟 提交于 2019-12-18 07:15:03
问题 I was wondering if it's possible to "extract" a part of UIImageView . For example, I select using Warp Affine a part of the UIImageView and I know the selected part frame . like in this image: Is it possible to get from the original UIImageView only the selected part without losing quality? 回答1: Get the snapshot of the view via category method: @implementation UIView(Snapshot) -(UIImage*)makeSnapshot { CGRect wholeRect = self.bounds; UIGraphicsBeginImageContextWithOptions(wholeRect.size, YES,

Warp \ bend effect on a UIView?

余生颓废 提交于 2019-12-17 17:34:28
问题 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 for my needs. I need the effect to be snappy so I can make it responsive to touch. Is there a close effect \ animation in the iOS sdk that does something similar to this with a UIVIew? ( I couldn't find anything close) If not, can someone offer how

Unwanted Warp effect drawing text on path android

非 Y 不嫁゛ 提交于 2019-12-05 10:20:16
问题 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. This images shown below are cropped with gimp, so don´t be irritated by the different sizes. My Rect, Path and Matrix objects: RectF drawTextOval; Path drawTextPath; Matrix mDrawnMatrix; Now, this is what I am doin to draw text on circle path:

PhotoShop 高级应用: Puppet Warp - 操控变形

非 Y 不嫁゛ 提交于 2019-12-04 21:49:28
一: Puppet Warp - 操控变形 【人像图像进行类似肌肉骨骼的多点调整:】 1.编辑选项卡--->操控变形- 【操控变形支持智能对象】 二.操控变形实例:人物图像的运动·重影效果 1.扣取人物图像,对扣取人物图像的图层进行重合调整, 2. 对扣取的人物图像进行操控变形,再对图像进行滤镜:动感模糊操作 · 操控变形需确定变形锚点,所定的锚点越多越容易控制 来源: https://my.oschina.net/u/4050043/blog/3131035

Android OpenCV getPerspectiveTransform and warpPerspective

我怕爱的太早我们不能终老 提交于 2019-11-28 22:01:05
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 (something like this Android OpenCV Find Largest Square or Rectangle ). The variables p1, p2, p3, and p4 are the coordinates of the corners of the largest square/rectangle in the image. p1 is the upper left, p2 is the upper right, p3 is the lower right, and p4 is the lower left (clockwise assigning). Mat src = new Mat(4,1,CvType.CV_32FC2); src.put(