Filter löschen
Filter löschen

How to access pointer in Matlab?

2 Ansichten (letzte 30 Tage)
Sheng Liu
Sheng Liu am 7 Dez. 2017
Bearbeitet: Walter Roberson am 7 Dez. 2017
I am trying to access the data I acquired from a CCD camera. This camera gets data and store in memory. They have a function to obtain the data pointer, however, I don't know how to access it. Please help.
Here is part of the code I have:
>> calllib('gsense400control','PSL_VHR_Snap_and_return') % this is to get the image from the sensor
>> imag_pointer = calllib('gsense400control','PSL_VHR_get_image_pointer'); % using this I can get the image pointer
% if I want to save the image, I can do following:
>> filename = 'test.flf';
>> calllib('gsense400control','PSL_VHR_save_flf_image', img_pointer, width, height, filename) % with and height are the CCD sensor's pixel number in horizontal and vertical direction.
However, here I don't want to save the image first, instead, I want to access the image from the memory and directly process it.
Please let me know. Thank you.

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by