GithubHelp home page GithubHelp logo

Comments (2)

caiyuanhao1998 avatar caiyuanhao1998 commented on August 18, 2024

你好,感谢你的关注。用matlab可视化代码直接生成的图片是带白边的,提供在百度网盘里的图片是裁剪过后的。
你可以使用裁剪软件或者写一个裁剪代码来实现这一功能,以下是我自己写的一个裁剪代码,供你参考:

%Cut Out
clear all
method = ["MST","CST","DAUHST","MST_pp","HDNet","Truth"];
frame = 'frame1';
channel = ["channel6","channel16","channel21","channel28"];
save_dir = strcat(frame,'_simulation_compare_no_box\');
mkdir(save_dir);

for i=1:length(method)
    for j=1:length(channel)
        I = imread(strcat('simulation_results\rgb_results\',method(i),'\',frame,channel(j),'.png'));
        rect = [181 37 553 553];
        I_crop = imcrop(I,rect);
        imwrite(I_crop,strcat(save_dir,method(i),'_',channel(j),'.png'));
    end

end

from mst.

chenjiachengzzz avatar chenjiachengzzz commented on August 18, 2024

你好,感谢你的关注。用matlab可视化代码直接生成的图片是带白边的,提供在百度网盘里的图片是裁剪过后的。 你可以使用裁剪软件或者写一个裁剪代码来实现这一功能,以下是我自己写的一个裁剪代码,供你参考:

%Cut Out
clear all
method = ["MST","CST","DAUHST","MST_pp","HDNet","Truth"];
frame = 'frame1';
channel = ["channel6","channel16","channel21","channel28"];
save_dir = strcat(frame,'_simulation_compare_no_box\');
mkdir(save_dir);

for i=1:length(method)
    for j=1:length(channel)
        I = imread(strcat('simulation_results\rgb_results\',method(i),'\',frame,channel(j),'.png'));
        rect = [181 37 553 553];
        I_crop = imcrop(I,rect);
        imwrite(I_crop,strcat(save_dir,method(i),'_',channel(j),'.png'));
    end

end

哇 yuanhao大哥 也太强了,太感谢您了啊。

from mst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.