What is the function pixelIdxListsn?

Hello! I was given and asked to use a function called pixelIdxListsn, but because it was in .mexw64 file, and I am using a Mac so I had to get it in the .m format instead. I was told to get it from the Image Processing Toolbox, but realized that it actually does not belong there. Does anyone know where I can actually get the function, and what is it about? Thank you!

 採用された回答

Image Analyst
Image Analyst 2014 年 6 月 23 日

0 投票

There is no such function in the Image Processing Toolbox as you know. To find alternate code that does the same thing I'd have to know what that function does. I would go back to the author of the .mexw64 file - whoever built/compiled it - and ask them for the source code.

6 件のコメント

Image Analyst
Image Analyst 2014 年 6 月 23 日
What does it say in the comment just before they call pixelIdxListsn()? That should be some clue as to what it does. If it's a bad, poorly-written program and there are no comments, then just post the entire m-file and we'll try to figure it out from the context.
Hsiu
Hsiu 2014 年 6 月 24 日
Mm, I am not too sure who the author is as well, and thus I cannot find the source code. What do you mean by the comment? How do I attach a file here though? Thank you!
Image Analyst
Image Analyst 2014 年 6 月 24 日
There should be a comment right before you call the function, something like
% Now we call pixelIdxListsn() to do whatever.....
[output1, output2] = pixelIdxListsn(input1, input2, input3);
If the code is not commented, that's a sign of a bad programmer. You can attach your program with the paper clip icon, above teh dito box when you're typing in a response here.
Hsiu
Hsiu 2014 年 6 月 24 日
Oh! The function isn't called though. It was included in a folder of functions that I am supposed to put in my pathway, but it did not work thus I realized that I cannot use .mexw64. Attached is the file! Thank you!
Image Analyst
Image Analyst 2014 年 6 月 24 日
OK so it's a mexw64 file (a DLL). Where is your code where you're calling loadlibrary() and then calling the function?
Hsiu
Hsiu 2014 年 6 月 24 日
Erm do you mean where I am gonna use this function? It is as attached. Included in the pathway is a lot of other functions as well, but I am trying to run this attached script. When I do it, it stated the following error:
Undefined function 'pixelIdxListsn' for input arguments of type 'double'.
Error in bwconncomp_nd (line 12) pixelIdxList = pixelIdxListsn(A,conn);
Error in bwconncomp (line 107) [CC.PixelIdxList,CC.NumObjects] = bwconncomp_nd(BW, conn);
Error in RemoveSmallestComponents (line 12) CC = bwconncomp(image,connectivity);
Error in cav_initial_alignment (line 175) seg_im = RemoveSmallestComponents(seg_im,10000,26,1);
Error in FindTheLid (line 19) [R,S,dimensions,LVpool,RVpool] = cav_initial_alignment(Ventr,hPH,'BiV',[]);
So basically I need the function pixelIdxListsn?

サインインしてコメントする。

その他の回答 (2 件)

the cyclist
the cyclist 2014 年 6 月 23 日

0 投票

This article explains it.
Hsiu
Hsiu 2014 年 6 月 24 日

0 投票

Erm do you mean where I am gonna use this function? It is as attached. Included in the pathway is a lot of other functions as well, but I am trying to run this attached script. When I do it, it stated the following error:
Undefined function 'pixelIdxListsn' for input arguments of type 'double'.
Error in bwconncomp_nd (line 12) pixelIdxList = pixelIdxListsn(A,conn);
Error in bwconncomp (line 107) [CC.PixelIdxList,CC.NumObjects] = bwconncomp_nd(BW, conn);
Error in RemoveSmallestComponents (line 12) CC = bwconncomp(image,connectivity);
Error in cav_initial_alignment (line 175) seg_im = RemoveSmallestComponents(seg_im,10000,26,1);
Error in FindTheLid (line 19) [R,S,dimensions,LVpool,RVpool] = cav_initial_alignment(Ventr,hPH,'BiV',[]);
So basically I need the function pixelIdxListsn?

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

タグ

質問済み:

2014 年 6 月 23 日

コメント済み:

2014 年 6 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by