I am using EVIL DICOM image reader, it works well with some files, but some files give me this error: destination array was not long enough check destindex and length and the array's lower bounds I can't find the original website where I have purchased the program. Would appreciate any assistance.
Evil DICOM -destination array was not long enough check destindex and length and the array's lower bounds
722 views Asked by hncl At
1
There are 1 answers
Related Questions in ASP.NET-MVC-3
- Insert new user AspNetUser from another controller in .NET 7
- Error HRESULT E_FAIL has been returned from a call to a COM component in Asp.net MVC
- ASP.NET MVC 3/4 Razor - public action method not found - how to debug
- get data by linq but have Error when doit this
- ASP.NET issue facing exception issue
- How to Implement a View Count Feature for a Blog Website in Asp.net MVC Using a Database?
- Unable to install ASP.NET MVC 3 using chocolatey
- Display data from DB to ajaxToolkit LINE CHART (Ajax control Toolkit v20.1) Using ASP.NET Webform C# (Dissertation Question)
- Why ModelState Isvalid false when working on images
- How to create an ASP.NET MVC 3.2.7 page with 3 view models
- How to make correct test project
- MVC Increase max number of concurrent simultaneous request per user
- Error Number:2705,State:4,Class:16 Code first approach
- Integrating the SSO for MVC3 application with AzureADB2C account
- How to integrate Asp.Net MVC existing application to MAUI Framework
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 EVIL-DICOM
- Which DICOM UIDs should be replaced while overwriting pixel data in DICOM?
- How to convert Dicom to BMP image in C#?
- Wrong output pixel colors (grayscale) using EvilDICOM
- How to sort a tag with evil-DICOM?
- EvilDicom Image Corrupted
- How to Display DICOM images using EvilDICOM in c#?
- Evil Dicom hw to check if a tag exists
- Alter DICOM tags without saving
- How to determine which transfer syntax to use for each DICOM image?
- How to list DICOM studies from local server (local AETitle)?
- Handling a lossless jpeg Image in DICOM
- Length of PixelStream in EvilDicom library
- Can not find Open method in Evil Dicom using latest version from github
- How to get the value with VR=FL, VM=2 in Evil DICOM
- EvilDicom problems in using VoxelGrid
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?
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)
By looking at the Evil DICOM code (version 0.5.7), I assume that you are using the
ImageMatrixconstructor in a way that was not entirely planned for.The constructor you are referring to takes an array of DICOM image files, where the size of each image is supposed to be the same for all images.
Upon construction, the
Imagearray property is dimensioned to equal the size of one image times the length of the DICOM image array in the private methodIntializeMatrix.Next, the constructor loops over all image files and inserts the pixel data from each file into the
Imageproperty in theAppendImageToMatrixmethod. The start position of the copied pixel data in theImageis determined by the DICOM fileImageNumber.If the
ImageNumberis too high in relation to the size of theImagearray, pixel data is copied to position 0 in theImagearray.However! If the start position is equal to the length of the
Imagearray, which will happen if theImageNumberis exactly one more than the number of files, the start position will not be modified and there will be an attempt to write to a non-existing position in theImagearray!The line where this is happening is the fourth line in
AppendImageToMatrix, which reads:If you are building the library yourself, you might want to change the
>operator to a>=operator, then the application will at least not throw. Alternatively, you could consider a more fail-safe handling altogether of the pixel data copying. There is not room to elaborate on that here, though :-)I cannot right away find the
ImageMatrixclass in the updated version of Evil DICOM. However, if you run into problems with the old or the new code, consider reporting these problems on the Issues tab of the Evil DICOM Github repository.UPDATE Note that the
ImageNumberproperty is equal to the DICOM attribute Instance Number, tag (0020,0013).