use a mfile for a specific problem

i am dividing an image into blocks. Now for each block i want to calculate certain features and save the feature for each block as row in matrix. To calculate these features i already have a file which takes input as image using [namefile,pathname]=uigetfile({'img.jpg'}); and returns 1x11 feature vector. But this file reads an image as input. how can i use it for my problem to calculate features for individual blocks and save the feature vectors returned for each block as rows in a matrix.

回答 (1 件)

Jan
Jan 2016 年 10 月 19 日

0 投票

Duplicate the M file for the calculation of the results, remove the "[namefile,pathname]=uigetfile({'img.jpg'})" line and all other lines, which perform the file import, but provide the image data as input argument.

質問済み:

2016 年 10 月 19 日

回答済み:

Jan
2016 年 10 月 19 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by