Giter VIP home page Giter VIP logo

Comments (6)

aous72 avatar aous72 commented on May 24, 2024 1

Another opensource implementation, which is written in Matlab, is:
https://github.com/osamu620/MatHTJ2K
I will add a fork of this to me repositories.

from openjph.

aous72 avatar aous72 commented on May 24, 2024

Hi Aaron,

All is good; thank you for asking. I hope you are well.

I will do that before next week. I am happy to help with this.

I think one thing that is not very clear in the standard is the following:
If we represent wavelet coefficient by μ for the magnitude and and s for the sign, where s is either 0 (for positive) or 1 (for negative); then, the encoder encodes 2 (μ - 1) + s values. I hope this helps.

Cheers,
Aous.

from openjph.

boxerab avatar boxerab commented on May 24, 2024

Hi Aaron,

All is good; thank you for asking. I hope you are well.

I will do that before next week. I am happy to help with this.

I think one thing that is not very clear in the standard is the following:
If we represent wavelet coefficient by μ for the magnitude and and s for the sign, where s is either 0 (for positive) or 1 (for negative); then, the encoder encodes 2 (μ - 1) + s values. I hope this helps.

Cheers,
Aous.

All good here, thanks, Aous.
Any guidance you can add to the code would be a great help.
Aaron

from openjph.

aous72 avatar aous72 commented on May 24, 2024

Hi Aaron,

I managed to document the decoder. Unfortunately I could not document the encoder as well; I am hoping to get this one by the end of this week (1st of Nov).

I am including the decoder here for your reference; I had to change the extension to .txt in order to upload it. I will commit it with the rest of the code with my new release.

It was good to document that the code since this helped me uncover potential issues. If there any issues I will address them in a future commit.

I am in the process of developing a test for my library; this is currently in my development branch. This is needed because I made a lot of changes in my code in the process of reducing sign-unsigned warnings.

Cheers,
Aous.

ojph_block_decoder.txt

from openjph.

boxerab avatar boxerab commented on May 24, 2024

Fantastic! Thank you very much. I also find that documenting an algorithm helps improve the code itself when I think about possible edge cases. But it needs enough time and the right frame of mind to do it.
I'm glad to hear about the test framework, then you can refactor the code with peace of mind that you aren't breaking things. I would also recommend applying to oss-fuzz, particularly for the decoder, as it will uncover bugs.

from openjph.

boxerab avatar boxerab commented on May 24, 2024

Thanks, going to close this now.

from openjph.

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.