(Solved) Cannot Determine Photometric Interpretation Tutorial

Home > Cannot Determine > Cannot Determine Photometric Interpretation

Cannot Determine Photometric Interpretation

goMatlab ist ein Teil des goForen-Labels  Impressum  | Nutzungsbedingungen  | Datenschutz  | Werbung/Mediadaten | Studentenversion | FAQ | RSS Copyright © 2007 - 2016 goMatlab.de | Dies ist keine offizielle Website I am trying to write this to a single DICOM file using the new "MultiframeSingleFile" option in dicomwrite. Related Content Join the 15-year community celebration. Play games and win prizes! weblink

Learn MATLAB today! Ich lade zunächst eine Serie von Bildern hoch, manipuliere sie, so wie ich sie brauche und schreibe sie in eine Variable (s51). Related Content Join the 15-year community celebration. Error using ==> dicom_prep_ImagePixel>getPhotometricInterp at 90Cannot determine photometric interpretation.Thank you 0 Comments Show all comments Tags image processing toolboxdicomwrite Products Image Processing Toolbox Related Content 1 Answer Walter Roberson (view profile) you can try this out

Close × Select Your Country Choose your country to get translated content where available and see local events and offers. Re-writing the dicomwrite code as follows solves the problem:dicomwrite(reshape(X,[64 64 1 64]), info, 'CreateMode', 'Copy', 'MultiframeSingleFile', 'true'); 2 Comments Show all comments Brett Shoelson Brett Shoelson (view profile) 0 questions 66 An Error Occurred Unable to complete the action because of changes made to the page. If I take out the MultiframeSingleFile option, put the dicomwrite function in a for loop, and write each slice of the data as a separate file, it works correctly.Digging into the

  1. Error in dicom_prep_ImagePixel (line 10) metadata.(dicom_name_lookup('0028', '0004', dictionary)) = getPhotometricInterp(X, map, txfr); Error in dicom_prep_metadata (line 70) metadata = dicom_prep_ImagePixel(metadata, X, map, txfr, dictionary); Error in dicom_create_IOD (line 27) metadata =
  2. This seems obviously wrong, since the 3rd dimension in my data is image slices and does not represent colour map data.
  3. United States Patents Trademarks Privacy Policy Preventing Piracy Terms of Use © 1994-2016 The MathWorks, Inc.
  4. Discover...
  5. Related Content Join the 15-year community celebration.

Based on your location, we recommend that you select: . Code: % Get metadata for i = 1:length(fileNames) md1{i} = dicominfo(fullfile(fileFolder, fileNames{i})); end Funktion ohne Link? Learn more MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi Learn more Discover what MATLAB® can do for your career. I therefore tried hard-coding the PhotometricInterpretation in dicom_prep_ImagePixel (line 10):%metadata.(dicom_name_lookup('0028', '0004', dictionary)) = getPhotometricInterp(X, map, txfr); metadata.(dicom_name_lookup('0028', '0004', dictionary)) = 'MONOCHROME2'; With this modification, the data saves without error, and can

Easy when you know how! The man page does mention this, but that assumes that you know you have a JPEG encoded image :) It works the same, can extract multiple frames and can be converted Ein einzelnes Bild inkl. https://www.mathworks.com/matlabcentral/answers/78164-dicomwrite-error-cannot-determine-photometric-interpretation Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name

However, when I run this I get the following chain of errors:Error using dicom_prep_ImagePixel>getPhotometricInterp (line 116) Cannot determine photometric interpretation. Play games and win prizes! Here is the data: https://www.dropbox.com/s/8wynz8iq8qm3j01/seg_result_240steps.mat https://www.dropbox.com/s/ukmq40hyye7pzty/TumorSimOutput2_discrete_enh_truth.dcm matlab dicom share|improve this question asked Jun 6 '13 at 4:02 andandandand 7,36140129221 1 Same problem here, looks like it is the squeeze: mathworks.com/matlabcentral/answers/44603 Apply Today MATLAB Academy New to MATLAB?

Reload the page to see its updated state. This therefore seems to be a bug in the implementation of the MultiframeSingleFile option in dicomwrite. Vielen Dank für die Hilfe, Robert rcsapo Themenstarter Forum-Fortgeschrittener Beiträge: 55 Anmeldedatum: 11.09.09 Wohnort: --- Version: ---       Verfasst am: 02.05.2013, 22:34     Titel:       Konnte das United States Patents Trademarks Privacy Policy Preventing Piracy Terms of Use © 1994-2016 The MathWorks, Inc.

Danke trotzdem… Einstellungen und Berechtigungen Beiträge der letzten Zeit anzeigen: Alle Beiträge1 Tag7 Tage2 Wochen1 Monat3 Monate6 Monate1 Jahr Die ältesten zuerstDie neusten zuerst Du kannst Beiträge in dieses Forum have a peek at these guys Code: for i = 1:length(fileNames) outputFileName = sprintf('Changed_Image #%d.IMA',i); dicomwrite(s51, ['~/Desktop/S5_Sub' outputFileName], md1{i}); end Funktion ohne Link? Close × Select Your Country Choose your country to get translated content where available and see local events and offers. Error in dicomwrite (line 200) [status, options] = write_message(X, filename, map, metadata, options); Error in test_dicomwrite (line 27) result=dicomwrite(seg_result, 'seg_result.dcm', info); I suspect the error derives from the fact that I

status=dicomwrite(seg_result, 'seg_result.dcm', info); I get this awful bunch of errors:Error using dicom_prep_ImagePixel>getPhotometricInterp (line 116) Cannot determine photometric interpretation. What is a unifier? Collected writings by Ian Wienand mostly about various systems topics and anything else I find interesting. check over here Based on your location, we recommend that you select: .

Browse other questions tagged matlab dicom or ask your own question. Discover... Opportunities for recent engineering grads.

Add-in salt to injury?

If size(X,3) == 3, it is set to one of the various colour scales. How can I prove its value? Error in dicom_prep_ImagePixel (line 10) metadata.(dicom_name_lookup('0028', '0004', dictionary)) = getPhotometricInterp(X, map, txfr); Error in dicom_copy_IOD (line 32) metadata = dicom_prep_ImagePixel(metadata, X, map, options.txfr, dictionary); Error in dicomwrite>write_message (line 268) [attrs, status] You can also select a location from the following list: Americas Canada (English) United States (English) Europe Belgium (English) Denmark (English) Deutschland (Deutsch) España (Español) Finland (English) France (Français) Ireland (English)

Error in dicomwrite (line 200) [status, options] = write_message(X, filename, map, metadata, options); Error in test_dicomwrite (line 27) result=dicomwrite(seg_result, 'seg_result.dcm', info); I suspect the error derives from the fact that I To use Google Groups Discussions, please enable JavaScript in your browser settings, and then refresh this page. . Opportunities for recent engineering grads. http://inviewsoftware.com/cannot-determine/cannot-determine-location-ios-7.html Am I correct in thinking that this is a bug, or am I doing something else wrong? 0 Comments Show all comments Tags photometric interpretationdicomwritedicom Products MATLABImage Processing Toolbox Related Content

Learn MATLAB today! Board index All times are UTC + 1 hour Powered by phpBB Forum Software © phpBB Group Technovelty Converting DICOM images, part 2 Mon 14 March 2011 In a previous post An Error Occurred Unable to complete the action because of changes made to the page.