imebra

C++ reading 16bit binary data from raw img and store them in vector

烈酒焚心 提交于 2020-04-18 06:32:32
问题 These days I am struggling at malloc memory. I try to read 16-bit binary data from raw img and store them in buffer or vector. The total size of these binary data is about 15M. For this kind of size, which way is better between buf or vector? Here is my code below: #include <imebra/imebra.h> #include <stdio.h> #include <iostream> #include <fstream> #include <string.h> #include <vector> #include<iterator> #include <algorithm> #define img_height 2816 #define img_width 2816 //#define img_size

How can I convert RAW image to DICOM image using imebra?

左心房为你撑大大i 提交于 2020-04-18 05:28:42
问题 I am new to imebra and want to convert raw image to DICOM image. I have complied the imebra library to my virtual machine (ubuntu 16.04), and followed the tutorial from the website. I found that they do not show how to convert raw image to DICOM image. Can anyone help me out or tell me the process of converting? #include <imebra/imebra.h> #include <iostream> #include <fstream> #include <stdlib.h> #include <memory> using namespace std; int main() { //creat read stream using namespace puntoexe;

Imebra - Change color contrasts

大憨熊 提交于 2019-12-06 14:37:41
问题 I am able to load dicom image using imebra, and want to change the colors of image, but cant figure out a way. I want to achieve functionality as in Dicomite app. Following is my code: public void loadDCM() { com.imebra.DataSet loadedDataSet = com.imebra.CodecFactory.load(dicomPath.getPath()); com.imebra.VOIs voi = loadedDataSet.getVOIs(); com.imebra.Image image = loadedDataSet.getImageApplyModalityTransform(0); // com.imebra.Image image = loadedDataSet.getImage(0); String colorSpace = image

Imebra - Change color contrasts

偶尔善良 提交于 2019-12-04 20:17:40
I am able to load dicom image using imebra, and want to change the colors of image, but cant figure out a way. I want to achieve functionality as in Dicomite app. Following is my code: public void loadDCM() { com.imebra.DataSet loadedDataSet = com.imebra.CodecFactory.load(dicomPath.getPath()); com.imebra.VOIs voi = loadedDataSet.getVOIs(); com.imebra.Image image = loadedDataSet.getImageApplyModalityTransform(0); // com.imebra.Image image = loadedDataSet.getImage(0); String colorSpace = image.getColorSpace(); long width = image.getWidth(); long height = image.getHeight(); TransformsChain