首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏记录

    使用commons-imaging 获取图片的尺寸

    1、导入依赖包 以gradle 导入为例,maven类似 implementation ('org.apache.commons:commons-imaging:1.0.0-alpha5')2、计算图片实际尺寸 //1、通过MultipartFile file 获取ImageInfo ImageInfo imageInfo = Imaging.getImageInfo(file.getBytes()); //

    48310编辑于 2025-01-07
  • 来自专栏txp玩Linux

    onvif中imaging setting图像画质总结!

    前言: 大家好,今天给大家来分享一篇关于图像质量的内容,这个内容是我在做onvif中的imaging setting的时候,关注到里面有关于: brightness(亮度) color saturation

    77520编辑于 2023-08-31
  • 来自专栏计算机视觉理论及其实现

    3D Imaging Using Extreme Dispersion in Optical Metasurfaces

    由于超表面对入射光的相位、偏振和振幅的极端控制,因此具有革新成像技术的潜力。它们依靠增强的光的局部相互作用来实现所需的相位轮廓。由于光的局部相互作用增强,超表面是高度色散的。这种强分散被认为是实现常规超表面成像的主要限制。在这里,我们认为这种强色散为计算成像的设计自由度增加了一个程度,潜在地打开了新的应用。特别是,我们利用超表面的这种强分散特性,提出了一种紧凑、单镜头、被动的3D成像相机。我们的设备由一个金属工程,聚焦不同的波长在不同的深度和两个深度网络,恢复深度和RGB纹理信息从彩色,散焦图像获得的系统。与其他基于元表面的3D传感器相比,我们的设计可以在更大的视场(FOV)全可见范围内运行,并可能生成复杂3D场景的密集深度图。我们对直径为1毫米的金属的模拟结果表明,它能够捕获0.12到0.6米范围内的3D深度和纹理信息。

    1.9K20编辑于 2022-09-02
  • 来自专栏软件研发

    解决问题cannot import name _imaging from PIL

    解决问题:cannot import name '_imaging' from 'PIL'在使用Python进行图像处理时,你可能会遇到问题,提示cannot import name '_imaging shellCopy codepip install --upgrade Pillow方法三:检查其他库的冲突在某些情况下,其他库可能与Pillow库发生冲突,导致出现cannot import name '_imaging 总结以上就是解决cannot import name '_imaging' from 'PIL'问题的几种方法。你可以先尝试检查Pillow库的安装情况,然后升级Pillow库,或者检查其他库的冲突。 当遇到cannot import name '_imaging' from 'PIL'错误时,我们可以尝试以下的示例代码来解决问题。 Pillow库简介Pillow库是一个用于图像处理的强大Python库,它是基于Python Imaging Library(PIL)开发的一个分支。

    4K10编辑于 2023-11-23
  • C# using System.Windows.Media.Imaging;该引用哪个dll

    在网上看到BitmapSource和WriteableBitmap一些类听说是用 using System.Windows.Media.Imaging;可是我发现VS中没有什么System.Windows.Media.Imaging 之类的框架,这就苦逼了,在网上也找不到,无意间发现原来引用不叫System.Windows.Media.Imaging,而是 PresentationCore 只需要在引用-->程序集-->框架-- WindowsBase也有引用方式 引用-->程序集-->框架-->WindowsBase 以后大家就不要再走弯路了,这个引用比较邪门,居然using System.Windows.Media.Imaging

    9700编辑于 2025-07-18
  • 来自专栏思影科技

    Magnetic Resonance Imaging:白质fMRI及静息态功能连接

    最近,来自USA的范德比尔特大学成像科学研究所的科研人员在Magnetic Resonance Imaging杂志上对白质信号中表现出的功能性展开了详细的描述。

    1.3K11发布于 2020-03-21
  • 来自专栏java 微风

    com.jhlabs:imaging:jar:01012005 所在仓库+captcha验证码maven依赖

    <version>1.0</version> </dependency> <dependency> <groupId>com.jhlabs</groupId> <artifactId>imaging

    59220编辑于 2022-04-13
  • 【阅读笔记】无背景的阴影校正-Simple Shading Correction Method for Brightfield Whole Slide Imaging

    这篇文章应用场景是细胞亮场全玻片成像分析,改善画面暗角或者阴影,只需要采集多帧不同分析场景的图像,无需纯背景图像的就可以校正阴影。

    11710编辑于 2026-02-02
  • 来自专栏Go工具箱

    「Go工具箱」推荐一个简单、实用的图像处理工具:imaging

    to fill the 100x100px area. dstImageFill := imaging.Fill(srcImage, 100, 100, imaging.Center, imaging.Lanczos imaging工具的调整图像大小的功能目前支持15种采样算法,但常用的只有以下6种:imaging.NearestNeighbor、imaging.Box、imaging.Linear、imaging.CatmullRom 、imaging.Lanczos。 生成缩略图 thumbnail := imaging.Thumbnail(srcImage, 100, 100, imaging.Lanczos 对图像进行裁剪 imaging工具对于图像裁剪也提供了很多函数 dstImageCorp := imaging.CropAnchor(srcImage, 100, 200, imaging.Center) 图像合成 imaging工具还提供了图像合成的能力,通过Overlay

    2.1K10编辑于 2023-01-31
  • 来自专栏深度学习

    【深度学习实验】图像处理(一):Python Imaging Library(PIL)库:图像读取、写入、复制、粘贴、几何变换、图像增强、图像滤波

    一、实验介绍   图像处理在深度学习领域中起到了至关重要的作用,Python Imaging Library(PIL)作为一种主流的图像处理库,为图像的读取、处理和增强提供了丰富的功能。   

    1.5K10编辑于 2024-07-30
  • 来自专栏林德熙的博客

    win10 UWP 剪贴板 Clipboard 设置文本获取文本获取图片获取文件

    src.SetSource(imgstream); Windows.Graphics.Imaging.BitmapDecoder decoder = await Windows.Graphics.Imaging.BitmapDecoder.CreateAsync (Windows.Graphics.Imaging.BitmapPixelFormat.Bgra8, Windows.Graphics.Imaging.BitmapAlphaMode.Straight, new Windows.Graphics.Imaging.BitmapTransform(), Windows.Graphics.Imaging.ExifOrientationMode.RespectExifOrientation (Windows.Graphics.Imaging.BitmapEncoder.PngEncoderId, fileStream); encoder.SetPixelData (Windows.Graphics.Imaging.BitmapPixelFormat.Bgra8, Windows.Graphics.Imaging.BitmapAlphaMode.Straight,

    2.6K10发布于 2018-09-18
  • 来自专栏技术文章

    C# 生成指定图片的缩略图

    format = originalImage.RawFormat; System.Drawing.Imaging.ImageFormat toFormat = System.Drawing.Imaging.ImageFormat.Jpeg; if (format.Equals(System.Drawing.Imaging.ImageFormat.Jpeg )) { toFormat = System.Drawing.Imaging.ImageFormat.Jpeg; toFormat = System.Drawing.Imaging.ImageFormat.Gif; } else if toFormat = System.Drawing.Imaging.ImageFormat.Icon; } else if

    81110编辑于 2024-06-20
  • 来自专栏快乐阿超

    获取图片dpi

    ——何其芳 可以通过下面的代码获取: ImageInfo imageInfo = Imaging.getImageInfo(file); imageInfo.getPhysicalWidthDpi imageInfo.getPhysicalHeightDpi(); 对应的依赖: <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-imaging </artifactId> <version>1.0-alpha3</version> </dependency> 用的是apache-commons的commons-imaging这个库 https ://commons.apache.org/proper/commons-imaging/index.html

    1K10编辑于 2023-06-23
  • 来自专栏技术文章

    C# 自动填充文字内容到指定图片

    // bmp.Save(ms,ImageFormat.Jpeg) System.Drawing.Imaging.ImageFormat iformat = System.Drawing.Imaging.ImageFormat.Jpeg; string extension = System.IO.Path.GetExtension else if (extension == "emf") { iformat = System.Drawing.Imaging.ImageFormat.Emf else if (extension == "gif") { iformat = System.Drawing.Imaging.ImageFormat.Gif else if (extension == "png") { iformat = System.Drawing.Imaging.ImageFormat.Png

    66010编辑于 2024-06-20
  • 来自专栏walterlv - 吕毅的博客

    .NET 程序如何获取图片的宽高(框架自带多种方法的不同性能)

    ---- 本文即将评估的方法 本文即将采用以下四种方法获取图片: System.Drawing.Imaging.Metafile System.Drawing.Bitmap System.Windows.Media.Imaging.BitmapImage System.Windows.Media.Imaging.BitmapDecoder System.Drawing.Imaging.Metafile 实际上不要被这个名字误解了,Metafile 并不是 large-background-image.jpg"); var witdh = bitmap.Width; var height = bitmap.Height; System.Windows.Media.Imaging.BitmapImage 这也是 WPF 框架中提供的方法,但相比完全加载图片到可以显示的 System.Windows.Media.Imaging.BitmapImage,此方法的性能会好得多。 可以发现,对于 .NET 框架中原生自带的获取图片尺寸的方法来说: System.Windows.Media.Imaging.BitmapDecoder 的整体性能是最好的 对于同一张图,System.Windows.Media.Imaging.BitmapImage

    3K20发布于 2020-02-21
  • 来自专栏技术文章

    C#动态生成带参数的小程序二维码

    // bmp.Save(ms,ImageFormat.Jpeg) System.Drawing.Imaging.ImageFormat iformat = System.Drawing.Imaging.ImageFormat.Jpeg; string extension = System.IO.Path.GetExtension else if (extension == "emf") { iformat = System.Drawing.Imaging.ImageFormat.Emf else if (extension == "gif") { iformat = System.Drawing.Imaging.ImageFormat.Gif else if (extension == "png") { iformat = System.Drawing.Imaging.ImageFormat.Png

    74010编辑于 2024-06-20
  • 来自专栏技术文章

    C# WinForm实现画笔签名及解决MemoryBmp格式问题

    Image bmpData = null; // 定义 Image 图像,将来导出时使用 实例化变量的过程中 new Bitmap ,则产生的默认格式为 System.Drawing.Imaging.ImageFormat.MemoryBmp MemoryStream(); // bmp.Save(ms,ImageFormat.Jpeg) System.Drawing.Imaging.ImageFormat iformat = System.Drawing.Imaging.ImageFormat.Jpeg; string extension = System.IO.Path.GetExtension if (extension == "bmp") { iformat = System.Drawing.Imaging.ImageFormat.Bmp 我们在应用中可以灵活掌握,如下代码: Bitmap newimg = new Bitmap(100,100); newimg.Save("d:\\test.jpg", System.Drawing.Imaging.ImageFormat.Png

    55610编辑于 2024-10-15
  • 带你用Go实现二维码小游戏(上)

    = "" { var resizeImg *image.NRGBA logoSrc, err := imaging.Open(g.LogoFile) if err resizeImg = imaging.Resize(logoSrc, int(g.Width)/int(MEDIUM), int(g.Width)/int(MEDIUM), imaging.Lanczos ) case BIG: resizeImg = imaging.Resize(logoSrc, int(g.Width)/int(BIG), int( g.Width)/int(BIG), imaging.Lanczos) } } else { resizeImg = imaging.Resize %s", GetFileName(g.LogoFile), JPG) if err = imaging.Save(resizeImg, g.LogoFile); err !

    70032编辑于 2024-10-27
  • 来自专栏码客

    WPF桌面端开发5-常用技巧

    bitmapImage; } image1.Source = BitmapToBitmapImage(bitmap); Bitmap => BitmapSource BitmapSource bs = Imaging.CreateBitmapSourceFromHBitmap System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(m.PixelWidth, m.PixelHeight, System.Drawing.Imaging.PixelFormat.Format32bppPArgb ); System.Drawing.Imaging.BitmapData data = bmp.LockBits( new System.Drawing.Rectangle(System.Drawing.Point.Empty , bmp.Size), System.Drawing.Imaging.ImageLockMode.WriteOnly, System.Drawing.Imaging.PixelFormat.Format32bppPArgb

    1K10发布于 2020-05-09
  • 来自专栏林德熙的博客

    dotnet 读 WPF 源代码笔记 了解 WPF 已知问题 后台线程创建 WriteableBitmap 锁住主线程

    System.Windows.Media.Imaging.BitmapSource.UpdateResource(System.Windows.Media.Composition.DUCE.Channel System.Windows.Media.Imaging.WriteableBitmap.SubscribeToCommittingBatch() PresentationCore.dll! System.Windows.Media.Imaging.WriteableBitmap.Unlock() PresentationCore.dll! System.Windows.Media.Imaging.WriteableBitmap.InitFromBitmapSource(System.Windows.Media.Imaging.BitmapSource System.Windows.Media.Imaging.WriteableBitmap.WriteableBitmap(System.Windows.Media.Imaging.BitmapSource

    76320发布于 2021-04-19
领券