Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ try (Service python : env.python()) {
// Wrap the NDArray to an Img.
Img<FloatType> blurredImg = new ShmImg<>(blurred);

## Limitations

The current maximum size of an image that can be backed by an `ShmImg` is `2^31 - 1` bytes,

i.e. `ShmImg.copyOf( ArrayImgs.unsignedShorts( 1024, 1024, 1023 ) );` is possible,

while `ShmImg.copyOf( ArrayImgs.unsignedShorts( 1024, 1024, 1024 ) );` leads to an Exception.

// Now do whatever you want with `blurredImg` as usual.
// ...
}
Expand Down