-
Notifications
You must be signed in to change notification settings - Fork 7
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
Win64 library and packed formats #64
Comments
Can I ask what version of Spinnaker SDK you installed? I wonder if they have changed their paths (I rarely use Windows but would only ever have been using 64-bit installs in any case, so something has changed). I will check on my end too. Regarding Mono12p/Mono12Packed this has not been implemented. In general the overhead of unpacking the data (compared to the bandwidth loss of transmitting in Mono16) was such that I never bothered. Perhaps a method to get the raw data is not a bad idea though. If you want to use this mode then a PR is welcome. |
I'm stuck with Spinnaker SDK v1.20.0.15 because of compatibility issues with micromanager, but I've been thinking about dumping that in favor of a Julia interface now that I know that I found your package. As far as raw data, all I need would be for SpinImage/CameraImage/whatever to spit out a uint8 array that was 1.5 larger than the image itself. The SpinView GUI that comes with the SDK already lets me save raw binary files in these packed formats, but I don't know how to get at these data directly using your library. |
Sorry, I guess I was being a bit dense. Got the Mono12p unpacking to work by dumping the entire buffer as a 1.5widthheight long UInt8 vector using unsafe_wrap and bit-shifting appropriately. |
I assume you mean you are dumping the raw buffer from a With regards to supporting the old version of Spinnaker, again, if you want to submit a PR that enables support and are able to test on your version, I'm happy to check that it still works on the latest version. |
A pull-request for something this small seems excessive. Here are code snippets to handle Mono10p/Mono12p packed formats. Mono10p
Mono12p
Mono10/12Packed formats are both packed as 3 bytes per pixel, so they would look the same as Mono12p, except for the body of the for loop. Those should be replaced with Mono10Packed
Mono12Packed
I'm not using a color camera, but the Technical Reference manual for my camera says that the same packing format applies for 10/12 bit Bayer image formats. |
Thanks @rguerrab, I misunderstood - I thought you wanted this to be integrated into the package. I'm pleased this is working for you. |
Yes, it would be nice if format unpacking became part of the package, but this approach works fine for me. One additional snag re the path. FLIR released version 2.0.0.146 and they changed their installation directory from "Point Grey Research" to "FLIR Systems", still with bin and bin64 subdirectories that contain the appropriate dlls. Best, |
I don't have easy access to Windows right now, if you're able to produce a PR that fixes Windor x64 for the most recent SDK (without breaking whatever was happening before) that would be appreciated. I'm only concerned with supporting 64-bit versions (both Julia and external libraries) so whatever works on the latest SDK is fine. @ianshmean do you happen to know if the MacOS/Linux installation has also changed? |
Sorry to necropost, but version Lines 54 and 72 of |
I'm overdue fixing the build progress on the current release/master. If you can find an older version that works for now, I recommend using that, and I will do my best to fix this this week |
Yeah, no rush. |
I'm still seeing this issue in 2022. @samuelpowell if you're still maintaining, this I can put together a PR to fix the issue on windows at least. |
PR welcome! |
I'll spin that up in the next couple days then. |
Hello,
The latest version of the package (v0.1.10) failed to compile on a 64bit installation of Julia in Windows. Changing the path to
path = joinpath(ENV["ProgramFiles"], "Point Grey Research", "Spinnaker", "bin64", "vs2015")
solved the problem. Having options for 32 and 64bit installations may be helpfull.
Also, I have not been able to convert Mono12p/Mono12Packed SpinImages to Julia arrays using CameraImage, and have not found a way to access the raw binary data. Is there a way to access this data to convert it to (U)Int or Float type?
Thanks
The text was updated successfully, but these errors were encountered: