Can't index images with imageIndex
조회 수: 7 (최근 30일)
이전 댓글 표시
I try to run this code:
queryImage = imread('clutteredDesk.jpg');
queryROI = [130 175 330 365];
Use the imrect function to select an ROI interactively
queryROI = getPosition(imrect)
figure
imshow(queryImage)
rectangle('Position',queryROI,'EdgeColor','yellow')
imageIndex = indexImages(imgSet,'Verbose',false);
imageIDs = retrieveImages(queryImage,imageIndex,'ROI',queryROI)
However, I get such error:
_ *Undefined function 'invertedImageIndex' for input arguments of type 'bagOfFeatures'.
Error in retrieve_images (line 41) imageIndex = invertedImageIndex(bag);*_
댓글 수: 0
답변 (1개)
Jayanti
2025년 4월 2일
편집: Jayanti
2025년 4월 2일
Hi Sapio,
This error is sometimes produced if you don't have the right toolbox installed for the function. You can try typing following in the command window:
help invertedImageIndex
If it prompts you to have certain toolbox for the function to work, install the toolbox through the link provided.
Hope this will be useful!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!