I want to create an image database which can be entirely accessed via MATLAB. I don't want to create any folder and save the image name in a database as it is not exactly suitable for my application. Can i go for it using SQL? if yes then please explain. Thanks in advance.
If you want yo store images in datanase you can use BLOB
datatype.
A BLOB
is a binary large object that can hold a variable amount of data. The four BLOB types TINYBLOB, BLOB, MEDIUMBLOB and LONGBLOB differ only in the maximum length of the values they can hold.
The article here explains how it works:
Download and install mysql-connector-odbc-5.1.9 . Create an ODBC datasource using ODBC Administrator, then in matlab type querybuilder. I'm assuming you followed the link in @Teez post about saving images in MySQL. If so create the query to retrieve the image in MATLAB visual query builder then hit the execute button. This should bring the required images into MATLABS workspace. You should be able to do the same thing in a UDF and with parameters linked to the where clause. Hope this helped.
Yes database and images you di that with an ease using mysql and paython if you want the speed is really not bad ... test it you will be amazed. Another good reason to use Paython
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.