Hi there,
I repeatedly received this error message while running the imregtform function. I wonder what can I do to solve it? It seems like nothing to do with my input data. But totally the problem in affine2d.empty().
Error using affine2d.empty
Abstract classes cannot be instantiated. Class 'affine2d' inherits abstract methods or properties but does not implement them. See the list of methods and
properties that 'affine2d' must implement if you do not intend the class to be abstract.
Error in imregtform>parseInputs (line 255)
parser.addParamValue('InitialTransformation',affine2d.empty(),@checkInitialTransformation);
Best,
Clover

댓글 수: 6

TADA
TADA 2019년 3월 28일
if you try running affine2d.empty(), you will see that it generates an empty affine2d vector, so thats not the problem...
try sharing your code and maybe we can help you
Xiaochun Xu
Xiaochun Xu 2019년 3월 28일
편집: Xiaochun Xu 2019년 3월 28일
Thanks for your feedback!!! I actually tried and got the same error.
Error using affine2d.empty
Abstract classes cannot be instantiated. Class 'affine2d' inherits abstract methods or properties but does not implement them. See the list of methods and
properties that 'affine2d' must implement if you do not intend the class to be abstract.
Is there any problem with my affine2d (attached)??? I am using a HIPPA compliant laptop, I don't know if this will affect the code running?
It works for me on 2017b... Try typing
which affine2d -all;
Maybe you have another class overriding the built-in one?
TADA
TADA 2019년 3월 28일
Oh, you did override it.... Try renaming your class and file into something else
Xiaochun Xu
Xiaochun Xu 2019년 3월 29일
You saved me!!! Thank you!!!!
TADA
TADA 2019년 3월 29일
Cheers :)

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

답변 (1개)

Ba Mo
Ba Mo 2019년 10월 30일
편집: Ba Mo 2019년 10월 30일

0 개 추천

I have had this problem for a couple of months now. i'm glad this was posted just 48 hours ago!
the same goes for the pReLu layer and the maeRegressionLayer in the deep-learning toolbox
I didnt post a question, because I feel the matlab deep learning toolbox is still developing.
for search-indexing, i will paste the text message of this error:
Abstract classes cannot be instantiated. Class 'maeRegressionLayer' inherits abstract methods or properties but does not implement them. Use meta.abstractDetails to see the list of methods and properties that 'maeRegressionLayer' must implement if you do not intend the class to be abstract.
Abstract classes cannot be instantiated. Class 'preluLayer' inherits abstract methods or properties but does not implement them. Use meta.abstractDetails to see the list of methods and properties that 'preluLayer' must implement if you do not intend the class to be abstract.

카테고리

제품

질문:

2019년 3월 28일

편집:

2019년 10월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by