testServer: loading of RGB image

This commit is contained in:
Matej Sekoranja
2014-09-23 13:47:33 +02:00
parent a22fb63af9
commit 45216ff0f0
3 changed files with 34 additions and 8 deletions
+2 -2
View File
@@ -757,8 +757,8 @@ void formatNTNDArray(std::ostream& /*o*/, PVStructurePtr const & pvStruct)
}
else if (cm == 2 && dims == 3)
{
cols = data[0]->getSubField<PVInt>("size")->get();
rows = data[1]->getSubField<PVInt>("size")->get();
cols = data[1]->getSubField<PVInt>("size")->get();
rows = data[2]->getSubField<PVInt>("size")->get();
imageSize = cols * rows * 3;
}
else