Home
last modified time | relevance | path

Searched refs:affine (Results 1 – 25 of 99) sorted by relevance

1234

/external/ImageMagick/Magick++/lib/
DOptions.cpp787 affine, in transformOrigin() local
788 current=_drawInfo->affine; in transformOrigin()
790 affine.sx=1.0; in transformOrigin()
791 affine.rx=0.0; in transformOrigin()
792 affine.ry=0.0; in transformOrigin()
793 affine.sy=1.0; in transformOrigin()
794 affine.tx=0.0; in transformOrigin()
795 affine.ty=0.0; in transformOrigin()
797 affine.tx=tx_; in transformOrigin()
798 affine.ty=ty_; in transformOrigin()
[all …]
DImage.cpp1889 oaffine=drawInfo->affine; in annotate()
1893 affine, in annotate() local
1896 affine.sx=1.0; in annotate()
1897 affine.rx=0.0; in annotate()
1898 affine.ry=0.0; in annotate()
1899 affine.sy=1.0; in annotate()
1900 affine.tx=0.0; in annotate()
1901 affine.ty=0.0; in annotate()
1903 current=drawInfo->affine; in annotate()
1904 affine.sx=cos(DegreesToRadians(fmod(degrees_,360.0))); in annotate()
[all …]
/external/ImageMagick/MagickCore/
Dannotate.c345 annotate_info->affine.tx=geometry_info.xi-image->page.x; in AnnotateImage()
346 annotate_info->affine.ty=geometry_info.psi-image->page.y; in AnnotateImage()
356 offset.x=annotate_info->affine.tx+i*annotate_info->affine.ry*height; in AnnotateImage()
357 offset.y=annotate_info->affine.ty+i*annotate_info->affine.sy*height; in AnnotateImage()
362 offset.x=(geometry.width == 0 ? -1.0 : 1.0)*annotate_info->affine.tx+i* in AnnotateImage()
363 annotate_info->affine.ry*height+annotate_info->affine.ry* in AnnotateImage()
365 offset.y=(geometry.height == 0 ? -1.0 : 1.0)*annotate_info->affine.ty+i* in AnnotateImage()
366 annotate_info->affine.sy*height+annotate_info->affine.sy* in AnnotateImage()
372 offset.x=(geometry.width == 0 ? -1.0 : 1.0)*annotate_info->affine.tx+ in AnnotateImage()
373 geometry.width/2.0+i*annotate_info->affine.ry*height- in AnnotateImage()
[all …]
Ddraw.c264 clone_info->affine=draw_info->affine; in CloneDrawInfo()
969 static SegmentInfo AffineEdge(const Image *image,const AffineMatrix *affine, in AffineEdge() argument
989 z=affine->ry*y+affine->tx; in AffineEdge()
990 if (affine->sx >= DrawEpsilon) in AffineEdge()
992 intercept=(-z/affine->sx); in AffineEdge()
996 intercept=(-z+(double) image->columns)/affine->sx; in AffineEdge()
1002 if (affine->sx < -DrawEpsilon) in AffineEdge()
1004 intercept=(-z+(double) image->columns)/affine->sx; in AffineEdge()
1008 intercept=(-z/affine->sx); in AffineEdge()
1022 z=affine->sy*y+affine->ty; in AffineEdge()
[all …]
Dgem.c1420 MagickExport double ExpandAffine(const AffineMatrix *affine) in ExpandAffine() argument
1422 assert(affine != (const AffineMatrix *) NULL); in ExpandAffine()
1423 return(sqrt(fabs(affine->sx*affine->sy-affine->rx*affine->ry))); in ExpandAffine()
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/
Daffine_linear_operator_test.py32 affine = AffineLinearOperator(
38 self.assertEqual(affine.name, "affine_linear_operator")
39 self.assertAllClose(y, affine.forward(x).eval())
40 self.assertAllClose(x, affine.inverse(y).eval())
41 self.assertAllClose(ildj, affine.inverse_log_det_jacobian(y).eval())
42 self.assertAllClose(-affine.inverse_log_det_jacobian(y).eval(),
43 affine.forward_log_det_jacobian(x).eval())
51 affine = AffineLinearOperator(
58 self.assertEqual(affine.name, "affine_linear_operator")
59 self.assertAllClose(y, affine.forward(x).eval())
[all …]
/external/ImageMagick/coders/
Dsvg.c140 affine; member
269 GetAffineMatrix(&svg_info->affine); in AcquireSVGInfo()
270 svg_info->scale[0]=ExpandAffine(&svg_info->affine); in AcquireSVGInfo()
1314 affine, in SVGStartElement() local
1332 GetAffineMatrix(&affine); in SVGStartElement()
1342 affine.sx=StringToDouble(value,(char **) NULL); in SVGStartElement()
1346 affine.rx=StringToDouble(token,&next_token); in SVGStartElement()
1350 affine.ry=StringToDouble(token,&next_token); in SVGStartElement()
1354 affine.sy=StringToDouble(token,&next_token); in SVGStartElement()
1358 affine.tx=StringToDouble(token,&next_token); in SVGStartElement()
[all …]
Dmsl.c606 affine, in MSLStartElement() local
775 current=draw_info->affine; in MSLStartElement()
776 GetAffineMatrix(&affine); in MSLStartElement()
796 draw_info->affine.sx=StringToDouble(p,&p); in MSLStartElement()
799 draw_info->affine.rx=StringToDouble(p,&p); in MSLStartElement()
802 draw_info->affine.ry=StringToDouble(p,&p); in MSLStartElement()
805 draw_info->affine.sy=StringToDouble(p,&p); in MSLStartElement()
808 draw_info->affine.tx=StringToDouble(p,&p); in MSLStartElement()
811 draw_info->affine.ty=StringToDouble(p,&p); in MSLStartElement()
927 affine.sx=cos(DegreesToRadians(fmod(angle,360.0))); in MSLStartElement()
[all …]
Dfpx.c986 affine; in WriteFPXImage() local
1042 affine.a11=1.0; in WriteFPXImage()
1043 affine.a12=0.0; in WriteFPXImage()
1044 affine.a13=0.0; in WriteFPXImage()
1045 affine.a14=0.0; in WriteFPXImage()
1046 affine.a21=0.0; in WriteFPXImage()
1047 affine.a22=1.0; in WriteFPXImage()
1048 affine.a23=0.0; in WriteFPXImage()
1049 affine.a24=0.0; in WriteFPXImage()
1050 affine.a31=0.0; in WriteFPXImage()
[all …]
Dmvg.c186 draw_info->affine.sx=image->resolution.x == 0.0 ? 1.0 : image->resolution.x/ in ReadMVGImage()
188 draw_info->affine.sy=image->resolution.y == 0.0 ? 1.0 : image->resolution.y/ in ReadMVGImage()
190 image->columns=(size_t) (draw_info->affine.sx*image->columns); in ReadMVGImage()
191 image->rows=(size_t) (draw_info->affine.sy*image->rows); in ReadMVGImage()
/external/tensorflow/tensorflow/contrib/distributions/python/ops/
Dvector_student_t.py199 affine = bijectors.Affine(
209 loc=array_ops.zeros([], dtype=affine.dtype),
210 scale=array_ops.ones([], dtype=affine.dtype))
213 affine.shift, affine.scale))
220 bijector=affine,
Dsinh_arcsinh.py179 affine = bijectors.Affine(
185 bijector = bijectors.Chain([affine, f])
Dvector_sinh_arcsinh_diag.py229 affine = bijectors.Affine(
232 bijector = bijectors.Chain([affine, f])
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
Dautoregressive_test.py24 from tensorflow.contrib.distributions.python.ops.bijectors.affine import Affine
59 affine = Affine(scale_tril=self._random_scale_tril(event_size))
61 self._normal_fn(affine), sample0, validate_args=True)
73 affine = Affine(scale_tril=self._random_scale_tril(event_size))
75 self._normal_fn(affine), sample0, validate_args=True)
78 shift_and_log_scale_fn=lambda x: [None, affine.forward(x)],
/external/libchrome/crypto/
Dp224_unittest.cc33 uint8_t affine[28 * 2]; member
792 EXPECT_EQ(0, memcmp(external.data(), kNISTTestVectors[i].affine, in TEST()
801 reinterpret_cast<const char *>(kNISTTestVectors[10].affine), 56))); in TEST()
803 reinterpret_cast<const char *>(kNISTTestVectors[11].affine), 56))); in TEST()
/external/ImageMagick/PerlMagick/
DMagick.xs7571 affine, in Mogrify() local
8385 draw_info->affine.sx=(double) SvNV(*(av_fetch(av,0,0))); in Mogrify()
8386 draw_info->affine.rx=(double) SvNV(*(av_fetch(av,1,0))); in Mogrify()
8387 draw_info->affine.ry=(double) SvNV(*(av_fetch(av,2,0))); in Mogrify()
8388 draw_info->affine.sy=(double) SvNV(*(av_fetch(av,3,0))); in Mogrify()
8389 if (fabs(draw_info->affine.sx*draw_info->affine.sy- in Mogrify()
8390 draw_info->affine.rx*draw_info->affine.ry) < MagickEpsilon) in Mogrify()
8398 draw_info->affine.tx=(double) SvNV(*(av_fetch(av,4,0))); in Mogrify()
8399 draw_info->affine.ty=(double) SvNV(*(av_fetch(av,5,0))); in Mogrify()
8408 current=draw_info->affine; in Mogrify()
[all …]
/external/ImageMagick/PerlMagick/quantum/
Dquantum.xs.in285 {"encoding", StringReference}, {"affine", ArrayReference},
316 {"linewidth", RealReference}, {"affine", ArrayReference},
407 { "AffineTransform", { {"affine", ArrayReference},
7571 affine, local
8382 "affine matrix must have 4 or 6 elements",PackageName);
8385 draw_info->affine.sx=(double) SvNV(*(av_fetch(av,0,0)));
8386 draw_info->affine.rx=(double) SvNV(*(av_fetch(av,1,0)));
8387 draw_info->affine.ry=(double) SvNV(*(av_fetch(av,2,0)));
8388 draw_info->affine.sy=(double) SvNV(*(av_fetch(av,3,0)));
8389 if (fabs(draw_info->affine.sx*draw_info->affine.sy-
[all …]
/external/ImageMagick/MagickWand/
Ddrawing-wand.c323 static void AdjustAffine(DrawingWand *wand,const AffineMatrix *affine) in AdjustAffine() argument
329 if ((affine->sx != 1.0) || (affine->rx != 0.0) || (affine->ry != 0.0) || in AdjustAffine()
330 (affine->sy != 1.0) || (affine->tx != 0.0) || (affine->ty != 0.0)) in AdjustAffine()
335 current=CurrentContext->affine; in AdjustAffine()
336 CurrentContext->affine.sx=affine->sx*current.sx+affine->ry*current.rx; in AdjustAffine()
337 CurrentContext->affine.rx=affine->rx*current.sx+affine->sy*current.rx; in AdjustAffine()
338 CurrentContext->affine.ry=affine->sx*current.ry+affine->ry*current.sy; in AdjustAffine()
339 CurrentContext->affine.sy=affine->rx*current.ry+affine->sy*current.sy; in AdjustAffine()
340 CurrentContext->affine.tx=affine->sx*current.tx+affine->ry*current.ty+ in AdjustAffine()
341 affine->tx; in AdjustAffine()
[all …]
/external/boringssl/src/crypto/fipsmodule/ec/
Dp256-x86_64_test.cc200 P256_POINT_AFFINE affine; in ExpectPointsEqual() local
201 if (!PointToAffine(&affine, actual)) { in ExpectPointsEqual()
209 if (OPENSSL_memcmp(expected, &affine, sizeof(P256_POINT_AFFINE)) != 0) { in ExpectPointsEqual()
214 << "Actual: (" << FieldElementToString(affine.X) << ", " in ExpectPointsEqual()
215 << FieldElementToString(affine.Y) << ") (" << actual_expr << ")"; in ExpectPointsEqual()
/external/skia/src/core/
DSkMatrix.cpp774 void SkMatrix::SetAffineIdentity(SkScalar affine[6]) { in SetAffineIdentity()
775 affine[kAScaleX] = 1; in SetAffineIdentity()
776 affine[kASkewY] = 0; in SetAffineIdentity()
777 affine[kASkewX] = 0; in SetAffineIdentity()
778 affine[kAScaleY] = 1; in SetAffineIdentity()
779 affine[kATransX] = 0; in SetAffineIdentity()
780 affine[kATransY] = 0; in SetAffineIdentity()
783 bool SkMatrix::asAffine(SkScalar affine[6]) const { in asAffine()
787 if (affine) { in asAffine()
788 affine[kAScaleX] = this->fMat[kMScaleX]; in asAffine()
[all …]
/external/skqp/src/core/
DSkMatrix.cpp773 void SkMatrix::SetAffineIdentity(SkScalar affine[6]) { in SetAffineIdentity()
774 affine[kAScaleX] = 1; in SetAffineIdentity()
775 affine[kASkewY] = 0; in SetAffineIdentity()
776 affine[kASkewX] = 0; in SetAffineIdentity()
777 affine[kAScaleY] = 1; in SetAffineIdentity()
778 affine[kATransX] = 0; in SetAffineIdentity()
779 affine[kATransY] = 0; in SetAffineIdentity()
782 bool SkMatrix::asAffine(SkScalar affine[6]) const { in asAffine()
786 if (affine) { in asAffine()
787 affine[kAScaleX] = this->fMat[kMScaleX]; in asAffine()
[all …]
/external/skia/tools/lua/
Dbitmap_statistics.lua34 elseif matrixType.affine then
/external/skqp/tools/lua/
Dbitmap_statistics.lua34 elseif matrixType.affine then
/external/swiftshader/third_party/LLVM/test/Transforms/IndVarSimplify/
Dcomplex-scev.ll2 ; a simple affine IV. Make sure that indvars eliminates it.
/external/eigen/Eigen/src/Geometry/
DTransform.h405 …EIGEN_DEVICE_FUNC inline ConstAffinePart affine() const { return take_affine_part::run(m_matrix); }
407 EIGEN_DEVICE_FUNC inline AffinePart affine() { return take_affine_part::run(m_matrix); }
875 affine().noalias() = (other.asDiagonal() * affine());
916 affine() += other * m_matrix.row(Dim);
1274 transform->affine() = other;
1340 TopLeftLhs(res, 0, 0, Dim, other.cols()).noalias() = T.affine() * other;
1436 res.affine().noalias() = other * tr.matrix();

1234