⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lhidrawregionmap.m

📁 This code can parse any image in matlab. Very elaborate code
💻 M
字号:
function LHIDrawRegionMap (D, optfolder, HOMELABELMAPS)
%function LHIDrawSubgraphMap(D, optfolder, HOMELABELMAPS)
%
% This function output the subgraphmap
%
%  LHIDrawSubgraphMap(D, optfolder, HOMELABELMAP)
%
%    D:             database struct
%    optfolder:     output folder
%
% Example:
% LHIDrawSubgraphMap(LHIquery(D,'object.name', 'road'),'C:\folder\', HOMELABELMAP); 
% This will make black and white labelmap in 'C:\folder\' of 'road'
% category from database D (if there are any)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% UCLA_LHI Dataset
% http://www.imageparsing.com
% 
% CIVS, UCLA
% 2008
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Nimage = length(D);
%name = [];
for i = 1:Nimage,
    bgMap = LHILMread(D, i, HOMELABELMAPS);
    [height, width,nchannel]=size(bgMap);
    graphMat = zeros(height,width);
    graphMat = LHIdrawregion(D(i).annotation,graphMat);
    imwrite(graphMat,strrep(fullfile(optfolder,D(i).annotation.filename),'.jpg','_bmp.tif'));
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -