简体   繁体   English

我如何使用Matlab从SQL Server 2008中检索我的映像

[英]How can i retrive my image from sql server 2008 using matlab

i had inserted image in sql server using matlab but when i am retrieving that image i get this [845941x1 int8] as my output so please tell me how will i get my original image using this output........ or any other way to retrieve that image.... 我已经使用matlab在sql服务器中插入了图像,但是当我检索该图像时,我得到了这个[845941x1 int8]作为我的输出,所以请告诉我如何使用该输出来获得我的原始图像........或任何检索该图像的其他方法。

this is my code to insert image: 这是我插入图像的代码:

 // conn = database('test','prashant','');
 //pes = exec(conn,'insert into filee select ''jpg'' as filetype,* from          
 //openrowset  (bulk  ''D:\file\index.jpg'' , single_blob) as x ');
 //close(conn);

code to retrieve is: 要检索的代码是:

// conn = database('test','prashant','');
// pess = exec(conn,'select * from filee');
//pess = fetch(pess);
// pess.data[1,3];
// close(conn);

please tell me the code to retrieve my image back..... 请告诉我代码以取回我的图像.....

目前还不清楚您想要什么,如果您想从表中获取信息,也许可以通过以下方法达到目的:

exec(conn,'select * from filee')

I think this vector is the raw database representation of the image... Try to reshape it to it's original size and then to draw it: 我认为此向量是图像的原始数据库表示形式...尝试将其重塑为原始大小,然后绘制它:

image(reshape(int8array,height,width));

But since I just see that your dimension of the int8 array is a prime number I wonder whether it can be reshaped in an image... 但是由于我只是看到int8数组的维数是素数,所以我想知道它是否可以在图像中重塑...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用SQL查询从表中检索图像并将其保存到其他服务器的文件夹中 - How to retrive image from a table and save it into a folder in different server using sql query 如何检查我是否有来自 SQL 服务器数据库的图像或不使用 C# - How can I check if I have an image from my SQL Server database or not using C# 如何将所有数据库从开发服务器导入到本地SQL Server 2008 R2? - How can I import all databases from my development server to my local SQL Server 2008 R2? 如何使用Powershell配置SQL Server 2008? - How can i configure sql server 2008 using powershell? 如何从 Matlab 连接到 Microsoft SQL Server 2008 (MSSQL)? - How to connect to Microsoft SQL Server 2008 (MSSQL) from Matlab? 我的.NET应用程序如何在不使用触发器的情况下从SQL Server 2008接收插入/更新/删除通知? - How can my .NET app receive insert/update/delete notifications from SQL Server 2008 without using triggers? 如何从SQL Server 2008数据库获取与SQL Server 2005兼容的备份? - How can I get a SQL Server 2005 compatible backup from SQL Server 2008 database? 如何从SQL Server Windows模式更改为混合模式(SQL Server 2008)? - How can I change from SQL Server Windows mode to mixed mode (SQL Server 2008)? 如何将数据库从SQL Server 2008迁移到SQL Server 2000 - How can I migrate database from SQL Server 2008 to SQL Server 2000 如何将我的sql server 2008的架构导出到另一台计算机? - How can I export the schema of my sql server 2008 to another computer?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM