将Image对象转换为rgb像素数组,然后在Flutter中返回 [英] Convert Image object to rgb pixel array and back in Flutter

查看:84
本文介绍了将Image对象转换为rgb像素数组,然后在Flutter中返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以获取图像的rgb矩阵表示形式?反之亦然?我想对原始图像执行图像遮罩/过滤,因此需要将其应用于其rgb矩阵表示形式.当前正在使用该库从设备获取图像: https://pub.dartlang.org/packages/image_picker

Is there a way to get an image's rgb matrix representation? and vice versa? I would like to perform image masking/filtering on the original image so it needs to be applied to its rgb matrix representation. Currently using this library to get an image from a device: https://pub.dartlang.org/packages/image_picker

推荐答案

https://pub.dartlang.org/packages/image 提供图像转换和操纵实用程序功能.

https://pub.dartlang.org/packages/image provides image conversion and manipulation utility functions.

这篇关于将Image对象转换为rgb像素数组,然后在Flutter中返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆