How to Open files dicom using my images data set, I have own function readimage
조회 수: 5 (최근 30일)
이전 댓글 표시
Dear all,
I have the data set images (can download thru thin link: https://drive.google.com/drive/folders/1kWV87hIzHJMWKKLTX3IH9cApuh7qa6oA?usp=sharing),
I want to read my data set images using my created function readimages (attached)
but, it still ask for select the images.
Any one can help me?
댓글 수: 1
dpb
2023년 6월 24일
m=readlines('readimages.m');
m(1:10)
So, did you pass a filename or the directory location of the files?
채택된 답변
Cris LaPierre
2023년 6월 24일
This sounds like a usecase for an image datastore. Use the datastore to point to your images, and then use the readimage or readall function to load the image(s) using your custom function.
Here's an example from the linked page.
imds = imageDatastore("peppers.png","ReadFcn",@customreader);
imgs = readall(imds);
imshow(imgs{3})
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 DICOM Format에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!