medical

Convert grayscale png to RGB png image

↘锁芯ラ 提交于 2019-12-14 00:00:04
问题 I have a dataset of medical images in grayscale Png format which must be converted to RGB format. Tried many solutions but in vain. 回答1: If you want to just convert the format, the following method will help you: In python3, using PILLOW and Numpy: From PIL import Image import numpy as np im = Image.open(path/to/image, 'r').convert('L') im = np.stack((im,)*3, axis=-1) im = Image.fromarray(im) im.save(path/to/save) But if you want to colorize the image, know that colorization is an well-known

Overwrite an image/pixel data in the dicom file using dcmtk

自作多情 提交于 2019-12-11 10:03:33
问题 I use dcmtk to read a dicom file and extract the image into a .tiff format. After doing some image processing I have an image which I would like to save in the source dicom file.That is overwriting the old image/pixel data with my new ones, while keeping rest of the data(uid,patient name,,etc) same. I use the following code to read dicom OFCondition status = src_fileformat.loadFile(src_path); if (status.good()) { Sint32 instanceNumber = 0; if (src_fileformat.getDataset()->findAndGetSint32(DCM

Image registration of two volume with different number of slices

倖福魔咒の 提交于 2019-12-11 03:17:03
问题 I am trying to register two volumetric images from brain (PET and CT or even PET and MR). Each of these volumetric images contains different numbers of 2D images (slices). For example, CT has 150 slices and PET has 100 slices. I was thinking of using an interpolation method to calculate and reduce the number of CT slices to 100. Is this a correct approach? Does anyone know of any resources that could be helpful for me? like a pseudo code, or steps that I should go through for registering two

How to plot large time series (thousands of administration times/doses of a medication)?

♀尐吖头ヾ 提交于 2019-12-11 02:25:45
问题 I'm trying to plot how a single drug has been prescribed in the hospital. In this dummy database I have 1000 patient encounters after 2017/01/01. The goal of plotting is to see the pattern of administration of this drug: Is it given more frequently / high dose closer to time of admission, discharge, or in the middle of patient stay. #Get_random_dates that we will use multiple times gen_random_dates <- function(N, st, et) { st <- as.POSIXct(as.Date(st)) et <- as.POSIXct(as.Date(et)) dt <- as

Storage Commitment Service: why I really need a what is the real purpose?

☆樱花仙子☆ 提交于 2019-12-07 11:03:50
问题 I'm wondering why I really need of commitment after a c-store command; I can understand the commit is a sort of assurance about the fact the message was actually taken in charge by the storage and the storage takes the responsibility of it, but I wonder why is not safe enough to rely on the response status ? I read some explanations about that but none convinced me all the way. As far as I understood a commit can be required or better desirable basically because you can not totally trust the

Storage Commitment Service (push model): how i get the result back to my SCU?

心已入冬 提交于 2019-12-06 13:29:26
I planned to implement a Storage Commitment Service to verify if files previously sent to the storage were safely stored. My architecture is very simple and straightforward my SCU sends some secondary capture images to the storage and I want to be sure they are safely stored before delete them. I am going to adopt push model and I wonder what steps/features I need to implement to accomplish the service What I understood is I need to issue a N-ACTION request with SOP Class UID 1.2.840.10008.1.20.1 and add to the request a transaction identifier together with a list of Referenced SOP Class UID –

java Open source projects for medical diagnose & data mining [closed]

我怕爱的太早我们不能终老 提交于 2019-12-05 20:01:20
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for some OS java engines for medical diseases diagnose . these are engines that takes queries input from user discribing patient symptoms and the engine should return suggestions of potential disease according to input symptoms. does such engines exists somewhere? I prefer some Java OS engine in this field if there exists some. any suggestions or Ideas? thanks It sounds like you are looking for a

Storage Commitment Service: why I really need a what is the real purpose?

送分小仙女□ 提交于 2019-12-05 13:14:20
I'm wondering why I really need of commitment after a c-store command; I can understand the commit is a sort of assurance about the fact the message was actually taken in charge by the storage and the storage takes the responsibility of it, but I wonder why is not safe enough to rely on the response status ? I read some explanations about that but none convinced me all the way. As far as I understood a commit can be required or better desirable basically because you can not totally trust the system you are sending the message to. Well it sound like: when you insert a record in a database table

HIPAA Compliancy, What do I need to know? [closed]

你。 提交于 2019-12-05 08:08:32
Ok so I would for a branding company and we're just scratching the surface of collecting pharma data. I know a bit about HIPAA com pliancy but I guess where I'm fuzzy is.. A). when collecting data via a form, do I need to de-identify the data.. I.e. store it across separate tables etc. B). who/what has access to the functions/procedures to unencrypted any data stored. C). Can the database be a MySQL database? D). Do I need a certification/approval/license to do any of this? Basically what do I need to do, besides encrypting the data and storing it on a HIPAA compliant server. I want to capture

Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers)

假如想象 提交于 2019-12-04 17:06:11
问题 I tried to run the graph cut algorithm for a slice of an MRI after converting it into PNG format. I keep encountering the following problem: Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers). This is even after setting vmin and vmax as follows: plt.imshow(out,vmin=0,vmax=255) 回答1: Cast the image to np.uint8 after scaling [0, 255] range will dismiss this warning. It seems like a feature in matplotlib , as discussed in this issue. plt