-
Notifications
You must be signed in to change notification settings - Fork 105
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
Buffersize does not change when sector size is changed #93
Comments
2011-12-19 22:10 2011-12-20 07:08 Do you have a couple of different image streams (e.g., a full-frame low-FPS stream and one or more reduced-sector-size high-FPS stream)? How would you like to process and store these different streams? Are the number and properties (frame size, custom transform) of these streams are constant during a recording session (don't change between DataCollector->Start and ->Stop)? I see these design options to acquire image data with different frame sizes: 2012-01-05 21:09 Thank you for your comments. Let me explain my situation here. What we are trying to do is to capture all of the data throughout a biopsy procedure. This means that we have three different image streams, one high FPS RF image with 50% sector size, one low FPS RF image with 100% sector size and bmode images whenever we are not acquiring RF. Right now we have buffer size issues whenever we switch from bmode to RF and also whenever we change the sector size of the RF image. Resorting to connect and disconnect is the last thing that I want to do, since it will introduce additional delays to the system. What I would like to do is to add a custom function, similar to vtkSonixVideoSource::InternalConnect() which changes the frame size and pixel type. Basically, whenever the sector size is changed the frame size and pixel type are updated. Before I start developing, I would like to ask you if you have any suggestions. 2012-01-05 23:54 2012-01-06 18:40
and the implementation of AddNewFrameToSpecificBuffer would be the following?
2012-01-06 18:50 2012-01-10 01:20
Then the video source the implementation would be something like this:
2012-01-10 01:31 |
The vtkDataCollectorHardwareDevice works fine on its own, but when the sector size is changed, then the received frame size and the buffer size do not match.
The following code snippet produces the error, where the dataCollector is a pointer of vtkDataCollectorHardwareDevice type.
121911_172507.717 [ERROR] [016.838000] Received frame size (249604 bytes) doesn't match the buffer size (499204 bytes)! [in ......\PlusLib\src\ImageAcquisition\SonixVideo\vtkSonixVideoSource.cxx(292)]
Migrated from https://app.assembla.com/spaces/plus/tickets/415/details
The text was updated successfully, but these errors were encountered: