Giter VIP home page Giter VIP logo

Comments (5)

scao7 avatar scao7 commented on July 17, 2024

Just check the comment's in the Get_patches_2_lex.m

%--------------------------------------------
% USAGE:
% % % This example shows the following functions are equivalent:
% % % extract_patches_lex <=> Get_patches_2_lex
% % % insert_patches_lex <=> insert_patches_Get_patches_2_lex
% % %
% % im=im2double(imread('cameraman.tif'));
% % [R,C]=size(im);
% % ps=[8 8];
% % step=[1 1];
% % tic
% % %
% % % X=extract_patches_lex(im,ps,step);
% % X=Get_patches_2_lex(im,ps);
% % %
% % % im2=insert_patches_lex(X,R,C,ps,step);
% % im2=insert_patches_Get_patches_2_lex(X,R,C,ps);
% % %
% % time_extraction_insertion=toc
% % figure,imshow(im2)

from nwsr.

ashkan-abbasi66 avatar ashkan-abbasi66 commented on July 17, 2024

Actually I should have removed these comments because they are some hints for me. You do not need the function insert_patches_lex since it is equivalent to another function named insert_patches_Get_patches_2_lex which is already in the package now. As I remember, I replaced the former with the latter one because of its efficiency. However, If you want those functions, I will send them for you.

from nwsr.

scao7 avatar scao7 commented on July 17, 2024

Thanks,
I have fixed the problem by replacing insert_patches_lex function with insert_patches_Get_patches_2_lex function.
In the demo_train_dictionary.m , there is another missing function disp_patches. Could you send that function to me? Appreciate.

from nwsr.

ashkan-abbasi66 avatar ashkan-abbasi66 commented on July 17, 2024

I have uploaded the disp_patches function. You can download it now.
Regards,
Ashkan.

from nwsr.

scao7 avatar scao7 commented on July 17, 2024

Thanks.

from nwsr.

Related Issues (1)

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.