GithubHelp home page GithubHelp logo

help! about hypertransformer HOT 3 CLOSED

who15 avatar who15 commented on August 25, 2024
help!

from hypertransformer.

Comments (3)

hibryce avatar hibryce commented on August 25, 2024

I got the same problem too. If you dont need RGB pics, just comment out those columns. It works. Hope this could helpful for u fig1 = disp_rgb(ref); saveas(fig1, strcat(file_name,'/pavia_ref_', num2str(count, '%02d'),'.png')); saveas(fig2, strcat(file_name,'/pavia_lr_', num2str(count, '%02d'),'.png'));

from hypertransformer.

wgcban avatar wgcban commented on August 25, 2024

@hibryce @who15
@hibryce Thanks for the answer, this should work. If you still want to visualize RGB image you can use following function.

For pavia:

function xrgb = get_rgb(x)
    R=60;
    G=30;
    B=10;

    xr = x(:,:,R);
    xg = x(:,:,G);
    xb = x(:,:,B);
    xrgb = cat(3, xr, xg, xb)/max(x, [], "all");
end

For chikusei:

function xrgb = get_rgb(x)
    R=61;
    G=35;
    B=10;

    xr = x(:,:,R);
    xg = x(:,:,G);
    xb = x(:,:,B);
    xrgb = cat(3, xr, xg, xb)/max(x, [], "all");
end

from hypertransformer.

who15 avatar who15 commented on August 25, 2024

@wgcban @hibryce thanks for the answer!

from hypertransformer.

Related Issues (12)

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.