Questions tagged [transform]

1

votes
1

answer
83

Views

Mule 4 - Replace a JSON value in JSON Array with Dataweave 2

In my Mule 4 flow I get a JSON Array similar to the following: [ { 'type': 'error', 'status': 404, 'code': 'not_found', 'message': 'Could not find the resource', }, { 'type': 'error', 'status': 401, 'code': '', 'message': 'Could not find the specified ', } ] I want to change the value of the message...
gtx911
1

votes
1

answer
31

Views

Creating a dataframe column resulting from Groupby and transform

I have a dataframe of 4 columns textID, A, B,C I would like create a groupby object and then calculate the 5th percentile on column C and then add this column (calling it 'quantile') back to the original dataframe. I have this following code that works when groupby is on one column df2['quantile']=d...
user11305439
1

votes
1

answer
169

Views

Rotate around Y-axis without changing position

I am trying to build a pyramid and animate it. The problem is after having rotated it around the X-axis, I try to rotate it around the height of the pyramid(Y axis), but I it moves every time. I tried basically every transform-origin options, but it doesn't work. My code is the following: Thanks for...
B. Ma
1

votes
0

answer
5

Views

How to use OpenCV GeneralizedHoughTransform class with Python?

I'm trying to code a basic example of use of GeneralizedHoughBallard class using OpenCV 3.4.1 and Python 3.7.1 When I try to create a new instance of GeneralizedHoughBallard class: import cv2 alg = cv2.createGeneralizedHoughBallard() I get the error: 'AttributeError: module 'cv2.cv2' has no attribut...
MrLebovsky
1

votes
0

answer
261

Views

GetPerspectiveTransform function error | opencv | java

I am trying to make an automatic perspective correction of quadrangle objects. I am getting error when I am using getPerspectiveTransform function: OpenCV Error: Assertion failed (src.checkVector(2, CV_32F) == 4 && dst.checkVector(2, CV_32F) == 4) in cv::getPerspectiveTransform Here is my code: Mat...
Fleczer
1

votes
0

answer
571

Views

How to use the xdt:locator by condition in Web.config Transformation

I am trying to insert a dependentAssembly element into my config where the child assemblyIdentity element doesn't already exist. However, I'm getting the following error No element in the source document matches '/configuration/runtime/_defaultNamespace:assemblyBinding/_defaultNamespace:dependentAss...
PatrickNolan
1

votes
1

answer
34

Views

adjust divs after the div whose position is transformed

I'm adjusting a div 50% up but the divs after it still display on their position. .banner-action-card { border-radius: 5px; transform: translate(0, -50%); } Abc abc abc Select translate(0, -50%) is great since it nicely keeps the div aligned even in responsive design but how can I move the divs afte...
Imad
1

votes
0

answer
338

Views

CSS transform not working with SVG in Firefox

I have this simple hourglass animation made in SVG. The animation works in Chrome but does not work in Firefox. I am applying css transform translate to the #upper-fill-clip and #lower-fill-clip rect. @keyframes flowdown { 0% { transform: translateY(18%); } 100% { transform: translateY(49.2%);...
besrabasant
1

votes
0

answer
143

Views

Perspective Transform in Skia

I have a quadrilateral, the coordinates of which are known. I need to do a perspective transform and warp an image to those coordinates using Skia. I have referred to the links in Skia's page like https://developer.xamarin.com/guides/xamarin-forms/advanced/skiasharp/transforms/non-affine/ but not ab...
AUser123
1

votes
0

answer
70

Views

JavaFX: Unwanted jagged lines after PerspectiveTransform()

After doing a Perspective Transform on a grid (A Pane with a few Lines in it), the result (specially the more 'distant' lines) is not ideal as seen in the image: Currently I am using 'StrokeType.OUTSIDE' and it helped a little bit. Increasing the line width isn't an option since closer lines will be...
ihavenoidea
1

votes
0

answer
60

Views

how to create a zoom transition using custom navigation transition?

I'm new to navigation transition. I'm using Swift language for development. What i'm trying to do is, whenever user click on the tableview cell the new view will open and it look like it coming from the image view of the cell. I created a class of UIViewControllerAnimatedTransitioning. class Thumbn...
Sourav Mishra
1

votes
1

answer
550

Views

Davinci Resolve Image Disappear when transform/crop control is selected or clicked

It starts out fine, and the image is where it is supposed to be. When I click on the image anywhere it disappears, and I am left with ... That defeat the purpose for transforming, cropping, etc. Apparently this is not a new problem from my research trying to find a solution. But, I can't find any...
Mae Davis
1

votes
0

answer
167

Views

Detecting horizontal lines without Hough Transform

I am working with Dalsa Nano camera mounted in a moving car (20 Km/H). The problem is that the shake of the module produce some fails frames (or it is produced by error in the memory buffer, we are working to know that). For the moment, I am working to fix this problem detecting the fail frames by i...
Abel Dueñas
1

votes
1

answer
275

Views

Issues importing tf Transform on cloud ml

Whenever I try to import tensorflow-transform on an mlengine job I get the following issue: Traceback (most recent call last): File '/usr/lib/python2.7/runpy.py', line 162, in _run_module_as_main 'main', fname, loader, pkg_name) File '/usr/lib/python2.7/runpy.py', line 72, in _run_code exec code in...
Max Deng
1

votes
0

answer
76

Views

OrbisGIS CTS error transform EPSG coordinates java

I have and error with CTS transformation coordinates. Here is my code: CRSFactory cRSFactory = new CRSFactory(); RegistryManager registryManager = cRSFactory.getRegistryManager(); registryManager.addRegistry(new EPSGRegistry()); CoordinateReferenceSystem crs1 = null; CoordinateReferenceSystem crs2 =...
Navo
1

votes
0

answer
262

Views

How can I extract network coefficients from tensorflow .ckpt into .npy?

I am working with the FasterRCNN tensorflow implementation found HERE. When defining the 'train_net' function, in the file train.py, they define a saver with the following command: saver = tf.train.Saver(max_to_keep=100, write_version=saver_pb2.SaverDef.V1) As a result, at the end of a training run...
MathMits
1

votes
1

answer
50

Views

Creating multiple interaction terms identified by vectors using “transform” in R

I am using Amelia to multiply impute missing data. Since interactions are going to be in my analysis, I need to include them when estimating missing values, and Amelia does not do that automatically for me. So I computed the 18 interaction terms and had Amelia generate multiply imputed data. However...
Cristian
1

votes
0

answer
106

Views

Animate a rotating tooltip without rotating text itself (CSS)

I would like to create a tooltip which consists of a line that rotates around an icon when hovered, as the diagram below shows. Rotation part is not difficult, but I am having trouble getting the text to stay parallel to the page. Any help, if possible with an example, would be much appreciated. The...
ogot
1

votes
0

answer
123

Views

Hough transform parallelized (on CPU or using GPU computation) on Matlab?

I am doing image analysis on images of droplets in an emulsion. They appears as dark (black) rings on a rather homogeneous light grey background. To detect them I use imfindcircles Matlab function. Unfortunately I have many images to post-treat. Does anyone happen to know if there is a parallel func...
LeChat
1

votes
1

answer
42

Views

CSS transition is jumping to final state and back again before animating on mobile WebKit (Safari & Chrome)

I need to trigger a div to scale down using the CSS scale transform after a few seconds via JavaScript. I've tried toggling a class or setting the CSS manually but either approach is causing a flicker on my iPhone iOS 11 on Safari or Chrome. The red div first very quickly jumps to the final scale, t...
Sencha
1

votes
1

answer
332

Views

Emergency - CSS - Scale - Calc - Viewport

I'm not a coder (which will soon become apparent) but I'm working on something for a work project and I'm stuck on the final bit. I need to add a calc() working into the scale but it just won't work. Without going in to the in's and outs of why I need this, I know generally there would be better way...
Kyriakos1986
1

votes
1

answer
64

Views

Given a image of white lines forming a grid, how to get masks of the interior shapes using opencv?

I am trying to determine if there are pills in different cells of a pillbox. I have a raspberry pi camera that takes pictures of a pillbox at regular intervals. I would like to use computer vision using opencv and python to determine which of the 14 cells have pills in them. I have gotten as far as...
quantumbutterfly
1

votes
2

answer
213

Views

how to use node transform to transform one object into another

I'm new to Node streams and trying to figure out why things aren't working as expected. I'm just practicing and want to do a silly transform. interface MyTransformStreamOptions { [key: string]: any } class MyTransformStream extends Transform { constructor(options) { options.readableObjectMode = true...
lostdorje
1

votes
0

answer
148

Views

Spark - Transforming key-value pairs into columns

I'm having 100,000 files, each contains data for M items, and each item has N attributes, with the format of each file is like this: itemID,key,value item1_1,key1,value1 item1_1,key2,value2 ... item1_1,keyN,valueN item1_2,key1,value1 ... item1_2,keyN,valueN ... item1_M,keyN,valueN (1st file has...
Averell
1

votes
1

answer
24

Views

Transpose DataFrame based on Column Name Defined Range

So I have some server logs that i'm trying to parse into a tabular format. Imagine the logs are structured like this a = 'value1' b = 'value2' c = 'value3' a = 'value4' c = 'value5' a = 'value2' b = 'value12' c = 'value8' Where my definition of a 'record' (or row in my final DataFrame) are all of t...
sc305495
1

votes
0

answer
64

Views

Javafx rotating a group with PersepectiveCamera as child rotates camera about its own axes, and not the group node's

Here is my code for my Group which has 3d rotates on it: import javafx.scene.Group; import javafx.scene.transform.Rotate; public class Camera3D extends Group { ControllableCamera camera; Rotate rx = new Rotate(0, Rotate.X_AXIS); Rotate ry = new Rotate(0, Rotate.Y_AXIS); Rotate rz = new Rotate(0, Rot...
Ben Schroeder
1

votes
0

answer
153

Views

R basic workflow

I am absolutely new in R, and my problem is that I do not have any Real World experience in it. I mean, I have learnt a lot but I am always struggling when I get a new task to deal with. Generally speaking I am talking about, how to start to deal with a new task. Sometimes the dataset is so big (su...
Csaba Csorba
1

votes
0

answer
137

Views

Pre Processing Data for Tensorflow: InvalidArgumentError

When I run my tensorflow model I am receiving this error InvalidArgumentError: Field 4 in record 0 is not a valid float: latency [[Node: DecodeCSV = DecodeCSV[OUT_TYPE=[DT_STRING, DT_STRING, DT_STRING, DT_STRING, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_STRING, DT_STRING, DT_STRING, DT_STRING, DT_STRING, DT...
Prof. Falken
1

votes
1

answer
90

Views

Transform XML Attributes to Tags ( Nodes ) without using XSLT in Java

I have two XMLs - One has Tags and other has those tags as attributes and values. I need to merge the two xmls. I need to do it using Java without using xslt. I will have different pairs of xmls that I will need to merge, so I want to write a generic program to do it. How do I go about it? All t...
adbdkb
1

votes
0

answer
191

Views

Background-attachment fixed with transform not works in Firefox 2018

Hello everybody I have a problem with my code under, background-attachment fixed work only when I remove transform: rotate() in Firefox and IE instead working great in Chrome. This is my HTML This is my css .para{ z-index: -100; height: 160vh; width: 100%; margin-top: -40rem; background: url('back1....
android.replay
1

votes
0

answer
316

Views

AdStock Transformation in R

I am referencing this document here: https://mpra.ub.uni-muenchen.de/7683/4/Adstock On Page 6 there is a formula for AdStock Transformation that looks like this: I found an R code that reproduces this adstock transformation below: https://analyticsartist.wordpress.com/2013/11/02/calculating-adsto...
nak5120
1

votes
1

answer
93

Views

Facing error in loading image using Glide: Can't call reconfigure() on a recycled bitmap

I am getting error Can't call reconfigure() on a recycled bitmap while loading image using Glide library. 1 out of 5 time I am getting this error. Image size is around 1.5MB. I am using version 3.8.0 of Glide. Here is my code for Transformation: public class ScaleToFitWidthHeightTransform extends B...
pratik03
1

votes
2

answer
103

Views

Can the resulting command line be determined after running an .msi installer?

If I want a silent install, is there any simple way of running the installer, selecting the desired options and then determining the msiexec options/switches necessary for an equivalent installation? (Preferably without actually installing anything - not clicking finish) Or is digging through the MS...
1

votes
0

answer
47

Views

CSS transform set via JS conflicting with CSS animation

I'm rather used to using animations etc. but this one has got me stumped. I have a CSS animation like so on a inline-block div element. 0% { opacity: 0; -webkit-transform: translateY(40px); transform: translateY(40px); } 100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0);...
The Sloth
1

votes
1

answer
262

Views

Horizontal scrollbar in ie-11 due to css transform translate property

When I am using this css to make an element center into a container then everything is ok except ie-11. In ie-11 a horizontal scroll apper bottom of the page. When i remove width:100% from this css then scroll remove but i need this width. you can see the problem in this page http://www.azayabeach...
Surender Sharma
1

votes
2

answer
241

Views

Access Joining a TRANSFORM / PIVOT Query

First of All, thank you to anyone that can help. I have done many joining queries over the years but for some cannot get this one to work. It is the first time I have used the Transform / Pivot commands at the same though. Query 1: TRANSFORM Max(price_btc) SELECT year1, month1, day1, hour1, minute1...
user78913
1

votes
0

answer
50

Views

Safari Rendering Issues on Rotated Elements

world { width: 100%; height: 100%; position: absolute; perspective:800px; } bg { width: 100%; height: 100%; position: absolute; z:1; transform:rotateX(20deg) rotateY(10deg); background: url(https://images.pexels.com/photos/1154498/pexels-photo-1154498.jpeg?auto=compress&cs=tinysrgb&h=125...
ThemePunch
1

votes
0

answer
66

Views

translate x is not behaving right with timing precision

The initial state: 3 images sorted inline Action state : event click : the last image in the right disappear , the other images move to the right to take its place , finally showing new image , I will not go through explaining the whole implementation , 'since it is a little bit complicated' . An...
mark dibe
1

votes
2

answer
184

Views

How avoid *.<Environment>.config transformations being deployed on server

I'm using VSTS to deploy at several environments. And as usual, some parameters on config files need to be different depending the environment, hence I will use config transformations to deploy it at the target environment. Since I want to have the package with both the config and the transform that...
OriolBG
1

votes
1

answer
128

Views

CAShapeLayer get current scale

I have a CAShapeLayer that scales to an unknown scale number: myCAShapeLayer.transform = CATransform3DMakeScale(newScale, newScale, 1) Then at a certain point, I have to run a CABasicAnimation from current scale back to 1: let animation1 = CABasicAnimation(keyPath: 'transform.scale') animation1.from...
Gizmodo

View additional questions