-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can i change the variable(interleave_blocks and interleave_partitions) in config.cpp? #72
Comments
Due to the resolution issue of the camera, I am trying to reduce the size of the generated image, but I have not found the constraint relationship between these parameters. Would you please explain it? |
This branch will probably be helpful (I'm hoping to merge it to master soon): https://github.com/sz3/libcimbar/tree/bugfix-improve-and-5x5 These are the parameters that are easy(ish) to play with: https://github.com/sz3/libcimbar/blob/bugfix-improve-and-5x5/src/lib/cimb_translator/GridConf.h#L21-L29 The process is:
More details that may or may not be helpful:
Interleaving: The idea is that we are interleaving cells -- that is, instead of encoding bits 1-6 and then 7-12, we're encoding 1-6 then 61-66 (for example), then coming back to do 7-12 later. You can also think of it as the ecc blocks themselves being interleaved -- it's logically equivalent.
The constraints could technically be a little more flexible (e.g. technically if you do the math you might be able to get away with a factor of total bytes, e.g. 9300, not total cells, which is 1550), but in practice I've found the simpler/stricter constraints to be easier to reason about. Anyway, let me know if any of that helps... |
This should be much easier now both in this code base (#73), and particularly in the python code base (sz3/cimbar#25). Let me know if you still have questions! |
Thanks for your reply, but I still encountered some issues, these are my parameters.
I can't convert the cimbar code into a file correctly, where is the problem? |
I also attempted to modify the image size in the previous version of libcimbar(0.5.12), but it was not successful as well. |
I've tried the same parameter in the python version, it works correctly! How can i make it work in c++ version? @sz3 |
Are you sure you've rebuilt the correct binary after the modification? |
I suspect that rather than it working in the python version but not in the C++, what you're seeing is that it works with the base level of reedsolomon ecc, but not with the 2nd level of fountain (wirehair) ecc. Some quick math, following what I wrote in the comment above:
|
Thanks for your reply. I followed your instraction and modified the parameters as follows:
But i still cannot get any outputfiles, do I need to make any other modifications?May I ask if this set of parameters can run successfully on your computer?Every time I rebuild the project using |
thank you very much!! I downloaded the code again and it worked correctly. |
I noticed that the value of interleave_blocks is 155, with 30 of them being ecc_ bytes, 155 can be evenly divided by 9300, but I cannot receive it properly after changing the interleave_blocks to 100. I also don't quite understand the meaning of interleave_partitions.
The text was updated successfully, but these errors were encountered: