황찌옹
정리왕옹옹
황찌옹
GitHub Contribution
Loading data ...
  • 분류 전체보기 (158)
    • [ 알고리즘 ] (96)
      • Implementation (24)
      • Brute Force (6)
      • String (4)
      • Greedy (14)
      • DFS, BFS (13)
      • Back Tracking (4)
      • Sort & Binary Search (6)
      • DP (8)
      • Shortest Path (5)
      • Hash (3)
      • Stack, Queue (4)
      • Heap (1)
      • Tree (1)
      • Mathematics (1)
      • Ad-Hoc (1)
      • 기타 (COS Pro, etc) (1)
    • [ 언어 및 문법 ] (23)
      • Python (5)
      • C, C++ (13)
      • SQL (1)
      • 공통 개념(CS) (4)
    • [ Error ] (21)
      • Radiomics Feature Extraction (6)
      • CT Skin Segmentation (12)
      • etc (3)
    • [ Git ] (7)
    • [ 환경 설정 및 기타] (6)
    • [ 공부 ] (2)
      • AI, ML (0)
      • Computer Vision (0)
      • Image Processing (1)
      • QT (0)
      • AWS (1)
      • 의료 (0)
    • [ 포트폴리오 ] (1)
      • 🙋‍♀️자기 소개🙋‍♀️ (1)
      • 프로젝트 (0)
      • 공모전 (0)
      • 자격증 (0)
      • 대내외활동 (0)
      • 논문 (0)
      • 교육 봉사 (0)
    • [ 취준 ] (2)
      • 채용 설명회, 직무 상담 (1)
      • 취준 후기 (1)

블로그 메뉴

  • ❤️깃허브❤️

인기 글

태그

  • configuration
  • Python
  • 씹어먹는C++
  • aws
  • cos pro
  • pyplot
  • c++
  • QT
  • keras
  • config
  • tensorflow
  • 모두의코드
  • SQL
  • OpenCV
  • git
  • Anaconda
  • numpy
  • Visual Studio
  • cs
  • Cloud

최근 댓글

최근 글

전체 방문자
오늘
어제
hELLO · Designed By 정상우.
황찌옹

정리왕옹옹

[ Error ]/CT Skin Segmentation

warning C4715: 'DcmToMat' : not all control paths return a value

2022. 8. 4. 01:57

 

추적해보면, DCMToMat 이전에 get_files_in_folder함수에서 파일 목록을 return해주지 못하는 에러!

HANDLE hFind = FindFirstFile(folder, &fd);

여기에서 FindFirstFile의 return값이FFFFFFF... 이런 값이 나오고,

이 값은 즉, INVALID_HANDLE_VALUE와 같다.

if(hFind != INVALID_HANDLE_VALUE){

따라서 이 if문에 들어가지 못함...

결론 : FindFirstFile 의 input과 output에 대해 알아봐야 함.


 

접근 방법 1

이전에 .png 파일들 읽어 들인 것처럼 똑같이 코드 적용해본다. (Use *Unicode** Character Set으로)

    • 결론 : 실패... DCMTK는 UNICODE 를 Compile하지 못하는 듯... ==> 따라서 기존의 wchar_t, str_t, wsprintf 사용 X

"DCMTK does not compile when UNICODE or _UNICODE is defined because the VisualStudio compiler then uses the Unicode version instead of the ANSI version for all Windows API functions (i.e. type wchar_t instead of char for all character string parameters and return values)."

 

접근 방법 2

Use Multi-Byte Character Set으로 두고, 폴더 내 파일 목록 출력하는 FindFirstFile 함수와 get_files_in_floder 함수 자체를 수정한다. (API 문서 참고 : Listing the Files in a Directory)

image

 

image

  • 결론 : 일단 성공!
    image

image


이건 특정 쓰레드가 완전히 종료가 되지 않았는데 전체 프로그램이 종료가 되었을 때 발생하는 오류.
(OpenCV error..! 위와 다른 에러 ==> Overlay함수에서 at함수 문제)

 

 

image

TCHAR -> String 등 path 문제는 clear! (combpath_str)

 

 

'[ Error ] > CT Skin Segmentation' 카테고리의 다른 글

ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 지정된 모듈을 찾을 수 없습니다.  (0) 2022.08.04
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()  (0) 2022.08.04
(Win32): Unloaded 'C:\Windows\System32\winmmbase.dll' error  (0) 2022.08.04
OpenCV Error: Assertion failed (src.type() == CV_8UC1) in cv::threshold, file C:\builds\2_4_PackSlave-win64-vc11-shared\opencv\modules\imgproc\src\thresh.cpp, line 719  (0) 2022.08.04
The program has exited with code-1073741701 (0xc000007b) & fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' error  (0) 2022.08.04
    황찌옹
    황찌옹
    다 정리해버리꺼야

    티스토리툴바