Skip to content

Commit

Permalink
use keyword for Camera tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jun 19, 2024
1 parent de9d70a commit 98881cf
Show file tree
Hide file tree
Showing 36 changed files with 281 additions and 280 deletions.
6 changes: 3 additions & 3 deletions DeviceAdapters/ABS/ABSCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ int CABSCamera::Initialize()
temperatureIndex_ = 0;

pAct = new CPropertyAction (this, &CABSCamera::OnTemperature);
nRet = CreateProperty(MM::g_Keyword_CCDTemperature, "20.0 °C", MM::String, true, pAct);
nRet = CreateProperty(MM::g_Keyword_CCDTemperature, "20.0 C", MM::String, true, pAct);
assert(nRet == DEVICE_OK);
}
}
Expand Down Expand Up @@ -1258,7 +1258,7 @@ int CABSCamera::InsertImage()

// Important: metadata about the image are generated here:
Metadata md;
md.put("Camera", label);
md.put(MM::g_Keyword_Metadata_CameraLabel, label);
md.put(MM::g_Keyword_Elapsed_Time_ms, CDeviceUtils::ConvertToString((timeStamp - sequenceStartTime_).getMsec()));
md.put(MM::g_Keyword_Metadata_ImageNumber, CDeviceUtils::ConvertToString( imageCounter_ ));
md.put(MM::g_Keyword_Metadata_ROI_X, CDeviceUtils::ConvertToString( (long) GetImageWidth()));
Expand Down Expand Up @@ -2956,7 +2956,7 @@ int CABSCamera::OnTemperature(MM::PropertyBase* pProp, MM::ActionType eAct)
if ( IsNoError( rc ) )
{
string temperature;
str::sprintf( temperature, "%3.2f °C \0\0", sTR.wSensorValue / temperatureUnit_ );
str::sprintf( temperature, "%3.2f C \0\0", sTR.wSensorValue / temperatureUnit_ );
pProp->Set( temperature.c_str() );
}
return convertApiErrorCode( rc, __FUNCTION__ );
Expand Down
2 changes: 1 addition & 1 deletion DeviceAdapters/AlliedVisionCamera/AlliedVisionCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ void AlliedVisionCamera::insertFrame(VmbFrame_t *frame)

// TODO implement metadata
Metadata md;
md.put("Camera", m_cameraName);
md.put(MM::g_Keyword_Metadata_CameraLabel, m_cameraName);

VmbUint8_t *buffer = reinterpret_cast<VmbUint8_t *>(frame->buffer);
err = GetCoreCallback()->InsertImage(this, buffer, GetImageWidth(), GetImageHeight(), m_currentPixelFormat.getBytesPerPixel(),
Expand Down
2 changes: 1 addition & 1 deletion DeviceAdapters/AmScope/AmScope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ int AmScope::InsertImage()
MMThreadGuard g(imgPixelsLock_);
// Important: metadata about the image are generated here:
Metadata md;
md.put("Camera", label);
md.put(MM::g_Keyword_Metadata_CameraLabel, label);
md.put(MM::g_Keyword_Elapsed_Time_ms, CDeviceUtils::ConvertToString((timeStamp - sequenceStartTime_).getMsec()));
md.put(MM::g_Keyword_Metadata_ImageNumber, CDeviceUtils::ConvertToString( imageCounter_ ));
md.put(MM::g_Keyword_Metadata_ROI_X, CDeviceUtils::ConvertToString( (long) roiX_));
Expand Down
2 changes: 1 addition & 1 deletion DeviceAdapters/Andor/Andor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5780,7 +5780,7 @@ unsigned int AndorCamera::PopulateROIDropdownFVB()
// remove first .put deprecated and check if any changes. Perhaps take 5seq MDA first using current build, then rebuild and check difference
// Check both MM Metadata, and .text file generated by stack images.
// add SRRF - may need better timings, perhaps a new m_var_ but can decide during impl.
//md.put("Camera", label);
//md.put(MM::g_Keyword_Metadata_CameraLabel, label);
//md.put(MM::g_Keyword_Elapsed_Time_ms, CDeviceUtils::ConvertToString((timestamp - startTime_).getMsec()));
//md.put(MM::g_Keyword_Metadata_ImageNumber, CDeviceUtils::ConvertToString(imageCounter_));
//md.put(MM::g_Keyword_Binning, binSize_);
Expand Down
2 changes: 1 addition & 1 deletion DeviceAdapters/Aravis/AravisCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void AravisCamera::AcquisitionCallback(ArvStreamCallbackType type, ArvBuffer *cb
ArvBufferUpdate(cb_arv_buffer);

// Image metadata.
md.put("Camera", "");
md.put(MM::g_Keyword_Metadata_CameraLabel, "");
md.put(MM::g_Keyword_Metadata_ROI_X, CDeviceUtils::ConvertToString((long)img_buffer_width));
md.put(MM::g_Keyword_Metadata_ROI_Y, CDeviceUtils::ConvertToString((long)img_buffer_height));
md.put(MM::g_Keyword_Metadata_ImageNumber, CDeviceUtils::ConvertToString(counter));
Expand Down
2 changes: 1 addition & 1 deletion DeviceAdapters/Atik/Atik.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ int Atik::InsertImage()
// Important: metadata about the image are generated here:
Metadata md;

md.put("Camera", "Atik SDK Camera");
md.put(MM::g_Keyword_Metadata_CameraLabel, "Atik SDK Camera");

string serialised = md.Serialize();

Expand Down
2 changes: 1 addition & 1 deletion DeviceAdapters/Basler/BaslerPylonCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@ void CircularBufferInserter::OnImageGrabbed(CInstantCamera& /* camera */, const

// Important: meta data about the image are generated here:
Metadata md;
md.put("Camera", "");
md.put(MM::g_Keyword_Metadata_CameraLabel, "");
md.put(MM::g_Keyword_Metadata_ROI_X, CDeviceUtils::ConvertToString((long)ptrGrabResult->GetWidth()));
md.put(MM::g_Keyword_Metadata_ROI_Y, CDeviceUtils::ConvertToString((long)ptrGrabResult->GetHeight()));
md.put(MM::g_Keyword_Metadata_ImageNumber, CDeviceUtils::ConvertToString((long)ptrGrabResult->GetImageNumber()));
Expand Down
2 changes: 1 addition & 1 deletion DeviceAdapters/BaumerOptronic/BaumerOptronic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,7 @@ int CBaumerOptronic::SendImageToCore()
char label[MM::MaxStrLength];
this->GetLabel(label);
Metadata md;
md.put("Camera", label);
md.put(MM::g_Keyword_Metadata_CameraLabel, label);

int err = WaitForImageAndCopyToBuffer();
if (err != DEVICE_OK)
Expand Down
Loading

0 comments on commit 98881cf

Please sign in to comment.