[ome-devel] [ome-files] Copying ROI from C++ Array to VariantPixelBuffer
Dennis Ai
dennis.ai at sri.com
Tue May 15 00:19:19 BST 2018
Hi OME Team,
As part of the image acquisition pipeline we are developing, I would like to
be able to selectively copy a 3D-ROI into a VariantPixelBuffer so it can be
written to an OME-TIFF. In the documentation
<https://docs.openmicroscopy.org/ome-files-cpp/0.5.0/ome-files/api/html/clas
some_1_1files_1_1VariantPixelBuffer.html#a78436203a3b2fabbcf6c20d8753329df>
for VariantPixelBuffer, it says that adding support for subsetting
dimensions is a to-do.
The function prototype would look something like this. It would allow us to
copy a buffer into a ROI of the pixel buffer as defined by an x-offset,
y-offset, z-offset, and width (x), height (y), and depth (z).
void CopyROI(float* buffer, int x, int y, int z, int width, int height, int
depth)
I am happy to write my own extension method, but was wondering what would be
the best way to implement this. Would it be to use boost::static_visitor?
Thanks,
Dennis Ai
Senior Strategic Advisor, SRI Biosciences
SRI International
333 Ravenswood Ave
Menlo Park, CA 94025
(847) 440-4765
SRI BiosciencesT
A DIVISION OF SRI INTERNATIONAL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20180514/693ac1b5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5112 bytes
Desc: not available
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20180514/693ac1b5/attachment.p7s>
More information about the ome-devel
mailing list