I am working on a project with DICOM images where I need to compare two DICOM images. The problem is, one is in monochrome 1 and the other is in monochrome 2 (zero means white and black, respectively). How can I convert these pixel intensities to compare them? I am using the "pydicom" toolkit.
How to convert a DICOM from Monochrome 1 to Monochrome 2?
3.7k Views Asked by Sean M At
2
There are 2 best solutions below
Related Questions in IMAGE
- Golang lambda upload image into s3 static website
- Put an image behind the title in a WP, WooCommerce "shop" page
- How to create an JSOUP element from byte array image (Load from Database)
- Cloudflare not respecting Cache-Control
- Sending multiple images and data in a single angular observable
- Create and combine several images into a single image for my react native App
- Should I compress images in java backend before sending to frontend?
- Javascript Place Image Where User Clicks
- Whitespace in document has a bottom border remnant or some other line at the bottom of the whitespace
- Sony Spresense Camera Board
- After completely installation and done all the work i am getting Permission denied error do any one have solution
- HTML page on NAS server image not showing on mobile phone
- mouse coordinates in image go below 0 and above width
- Why are the css images or js not loading in my laravel project?
- Python pillow library text align center
Related Questions in DICOM
- How can I turn multiple jpegs into a Dicom file?
- Convert Images into Dicom with python
- Why my DICOM MWL SCP only sends SUCCESS response without dataset?
- Use DCMTK to read a JSON-formatted DICOM dataset
- Import standard tags to a DICOM file with pydicom
- Receive private SOPClassUID images in pydicom
- Are DICOM attributes always sorted by tag?
- Create a new private tags in a DICOM file
- How can I fix "unable to convert dataset from 'JPEG Baseline' transfer syntax to 'Little Endian Explicit'" while using DCMTK-Toolkit?
- Pydicom error while resizing dicom file - ValueError: The length of the pixel data in the dataset doesn't match the expected length
- How do I decompress/unencapsulate Pixel Data fragments using dcm4che?
- How to get the Study Instance UID (0020,000d) from DOS and display it in a memo with Delphi/Delphi 5 correctly? (DICOM)
- get scale of image (px/cm^2) in pydicom
- DICOM images displaying strangely
- Range of Pixel Data for a Dicom File
Related Questions in IMAGE-CONVERSION
- RuntimeError: Given groups=1, weight of size [64, 1, 3, 3], expected input[1, 3, 416, 416] to have 1 channels, but got 3 channels instead
- How do I modify this intrinsics code going from YUV420 to RGB24 to output RGBA32
- Replacing raster images in a PDF with vector images
- How to Create an Image from HTML Content with Specific Height Using Puppeteer Sharp
- Ghostscript eps file conversion to jpg not working inside the .NET application
- HEIC to JPG conversion in laravel 9 using "maestroerror/php-heic-to-jpg": "^1.0" package
- dart: converting a bitmap image to png, Image.fromBytes complains about missing data
- Convert palettised images with transparency to RGB with white background
- Hexstring to img conversion
- ImageMagick - converting from RAW to PNG brightens the image, but using an online converter doesn't
- Can I get a list of required packages to install libvips, libvips-dev, libvips-tools for version 8.14.4?
- "Unrecognized image mode" in multipage tiff file while loading a specific tiff page
- Python PIL: Image.convert() mode "L" to "1" - how to change the value 127
- base64 decoding histogram image
- Converting PDFs, .AI, .PSD files to PNG and keeping transparency with ImageMagick
Related Questions in MONOCHROME
- What is the size difference between Convolutional Neural Networks that take as input an RGB vs. monochrome image?
- 2D drawing file to Monochrome in Forge viewer
- What is the best lossless way to scale up a barcode image in c#
- How does the Monochromacy color space simulation work in Android?
- Determine with Camera2 when a lens is monochrome in APIs < 29
- Merge large monochromatic (BW) images
- Monochromatic (1bpp) simple framebuffer (simplefb.c) format/depth
- How do I convert a Color Image to Black and White using ImageMagick?
- Add Monochrome effect to YUV frames in Android / NDK
- Pixel Mapping for Rendering DICOM Monochrome2
- ffmpeg monochrome rawvideo
- FFMPEG - Green cast with Splash image in video
- How to convert normal bitmap to monochrome bitmap android
- Creating a monochrome Bitmap with byte array
- Print monochrome image as separation color in a PDF
Related Questions in PYDICOM
- pydicom : Dataset does not have attribute 'TransferSyntaxUID'
- How to fix this code to display images thumbnails
- pydicom AttributeError: Dataset does not have attribute 'ImagePositionPatient'
- How to correctly to combine a set of images into one dicom file?
- Create a new private tags in a DICOM file
- AttributeError: 'FileDataset' object has no attribute 'Modality'
- I can't open dcm file
- Receive private SOPClassUID images in pydicom
- Import standard tags to a DICOM file with pydicom
- Unable to load DICOM images using Pydicom inside tf.data.Dataset
- How to slice region of numpy array surrounding minimum value (i.e. 100 pixels on each side of a point)
- Positional Argument error with pydicom.dcmread
- Resize the Depth of CT data in Python
- Get all images of a multi-frame DICOM file
- Is it possible to retrieve beam real world position from RT PLAN
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Your major problem is not the Photometric Interpretation (MONO1/2).
You cannot compare pixel intensities of two DICOM images unless they refer to the same scale (e.g. Hounsfield Units).
If you have
Then it is pretty easy: Apply the linear transformation:
The measured values can be compared.
The same is true if you have a non-linear Modality LUT stored as a lookup table in the header, but the same restrictions apply for Rescale Type.
Otherwise I would refrain from comparing pixel values. Of course, it appears to be easy to just invert one of the two images, but the fact that they have different Photometric Interpretation tells me that they have been acquired by different devices or techniques. This means, that the pixel data is visually correct and comparable but not mathematically related.