Welcome to BLX foreign trade company!

Email

xiaoniuyisheng123@163.com

WhatsApp

+8613676902996

Control mechanism for frame storage, read and write of animal B-ultrasound images

2024-09-12 09:06:57 Visits:

The video images of animal B-ultrasound need to be collected in real time and reconstructed on the display after processing. The storage of animal B-ultrasound images must continuously write data, and at the same time, continuously read data from the storage and send it to the backend for processing and display. In addition, to meet this requirement, two equally sized frame memories can be set up in the acquisition system and managed through some read-write mechanisms.

To ensure that only one frame memory is in a write state at any time, a write mutex is set, while only one frame memory is in a read state, a read mutex is set. At the beginning of the system, one piece of frame memory is in a waiting write state and the other piece is in a waiting read state. After starting to work, both pieces are in a process of alternating between read and write states. The conversion process is the same, but the states of the two pieces are staggered, which ensures that data can be continuously written to and read from the frame memory.

The workflow is that the process of collecting B-ultrasound images for animals has not yet started. Some frames are stored in a waiting write state to obtain a write mutex lock, while others are stored in a waiting read state to obtain a read mutex lock. The frame memory write controller receives a detection start signal, and the animal B-ultrasound system determines that the acquisition has started. The frame memory write signal is set to be valid, and the frame memory starts writing the current frame data. At the same time, the frame memory read controller sets the frame memory read signal to be valid, and the frame memory starts reading the stored data.

At the end of one frame in the animal B-ultrasound image, the frame storage and writing ends, the write mutex lock is released, and the frame storage and reading end, the read mutex lock is released. Waiting for another frame to start, the frame memory obtains the read mutex lock and the frame memory obtains the write mutex lock. Starting from another frame, the write controller sets the frame memory write signal to be valid, and the frame memory starts writing data; The read controller sets the frame memory read signal to be valid, and the frame memory starts reading data.



tags: animal B-ultrasound
Text link:https://www.bxlultrasound.com/ns/28.html
animal B-ultrasound

Leave Your Message


Leave a message