필터 지우기
필터 지우기

converting images

조회 수: 2 (최근 30일)
Reza
Reza 2011년 10월 30일
Hi, I want to process images which I get with ultrasound in another software. since the ultrasound images have strange extension, I want to convert them to .jpg or .jpeg using MATLAB and I have the .m file. Problem: MATLAB can only convert 150 images at time and I want to convert more images (like 1000). Can you help me find what the problem is?
  댓글 수: 2
Image Analyst
Image Analyst 2011년 10월 30일
Why do you say that? As far as I know there's no limit on the number of images that can be converted. How are you getting the list of filenames, and how are you doing the conversion? With dir() and imread() and imwrite()?
Ashish Uthama
Ashish Uthama 2011년 11월 3일
Rza, MATLAB does not impose any file number restrictions. I believe this restriction might come from the program/code you use to do the conversion. As IA asked above, tell us how you are doing the conversion and what error/message it gives that leads you to the 150 image restriction.

댓글을 달려면 로그인하십시오.

답변 (2개)

Naz
Naz 2011년 10월 30일
If you dont use Doppler imaging (your images are grayscale), then it's better to have them as one channel, than is not RGB. This way you can have a regular D2 matrix, which is easy and intuitive to manipulate. After you open your image, just normalize it and then save it as .tif file for example. Also, since you claim that MaltLab can only do 150 images at a time, do it in the loop, so the conversion proceeds one at a time. By default it will save it as 8bit image.

Reza
Reza 2011년 10월 30일
Actually I use MATLAB but I'm not an expert and I did not write the code. I don't use Doppler imaging, it is a UCV and the files are DICOM files. The code works great, but the problem is it cannot convert more than 150 images. I just want to find a way to increase the number of images.
  댓글 수: 1
Image Analyst
Image Analyst 2011년 10월 30일
Again, why do you say that? Are you getting an error message? Exactly what does it say?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by